Skip to content

Commit 86048ad

Browse files
committed
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 <[email protected]>
1 parent 7d807d5 commit 86048ad

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

subsys/net/ip/ipv4.c

-2
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,6 @@ enum net_verdict net_ipv4_input(struct net_pkt *pkt, bool is_loopback)
454454

455455
enum net_verdict net_ipv4_prepare_for_send(struct net_pkt *pkt)
456456
{
457-
net_pkt_set_ll_proto_type(pkt, NET_ETH_PTYPE_IP);
458-
459457
if (IS_ENABLED(CONFIG_NET_IPV4_PMTU)) {
460458
struct net_pmtu_entry *entry;
461459
struct sockaddr_in dst = {

0 commit comments

Comments
 (0)