net: ipv4: Do not change the protocol type when sending
The ARP code has set the protocol type of the packet to 0x806, so do not change it when preparing to send to 0x800 which is the IP protocol type. Lets trust the previously called functions to set the ptype correctly and do not set it here. Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
This commit is contained in:
parent
81938f4c82
commit
30ad29c2a3
1 changed files with 0 additions and 2 deletions
|
|
@ -454,8 +454,6 @@ drop:
|
|||
|
||||
enum net_verdict net_ipv4_prepare_for_send(struct net_pkt *pkt)
|
||||
{
|
||||
net_pkt_set_ll_proto_type(pkt, NET_ETH_PTYPE_IP);
|
||||
|
||||
if (IS_ENABLED(CONFIG_NET_IPV4_PMTU)) {
|
||||
struct net_pmtu_entry *entry;
|
||||
struct sockaddr_in dst = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue