From 3e680551b6dcf45e6a33380f904d96dd4cf00948 Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Mon, 20 Jan 2025 18:44:23 +0200 Subject: [PATCH] net: ipv6: Do not set ptype when preparing for sending Trust that the protocol type is set correctly by functions called before this one. We should not set the protocol type blindly in this generic function. Signed-off-by: Jukka Rissanen --- subsys/net/ip/ipv6_nbr.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/subsys/net/ip/ipv6_nbr.c b/subsys/net/ip/ipv6_nbr.c index b141f4bdfb0..36e8b219691 100644 --- a/subsys/net/ip/ipv6_nbr.c +++ b/subsys/net/ip/ipv6_nbr.c @@ -806,8 +806,6 @@ enum net_verdict net_ipv6_prepare_for_send(struct net_pkt *pkt) return NET_DROP; } - net_pkt_set_ll_proto_type(pkt, NET_ETH_PTYPE_IPV6); - #if defined(CONFIG_NET_IPV6_FRAGMENT) /* If we have already fragmented the packet, the fragment id will * contain a proper value and we can skip other checks.