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 <jukka.rissanen@nordicsemi.no>
This commit is contained in:
parent
30ad29c2a3
commit
3e680551b6
1 changed files with 0 additions and 2 deletions
|
|
@ -806,8 +806,6 @@ enum net_verdict net_ipv6_prepare_for_send(struct net_pkt *pkt)
|
||||||
return NET_DROP;
|
return NET_DROP;
|
||||||
}
|
}
|
||||||
|
|
||||||
net_pkt_set_ll_proto_type(pkt, NET_ETH_PTYPE_IPV6);
|
|
||||||
|
|
||||||
#if defined(CONFIG_NET_IPV6_FRAGMENT)
|
#if defined(CONFIG_NET_IPV6_FRAGMENT)
|
||||||
/* If we have already fragmented the packet, the fragment id will
|
/* If we have already fragmented the packet, the fragment id will
|
||||||
* contain a proper value and we can skip other checks.
|
* contain a proper value and we can skip other checks.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue