commit | fc16c42bf77006213c156865037fc90157da12fa | [log] [tgz] |
---|---|---|
author | Jukka Rissanen <jukka.rissanen@nordicsemi.no> | Tue Mar 18 16:46:28 2025 +0200 |
committer | Benjamin Cabé <kartben@gmail.com> | Fri Mar 21 09:52:42 2025 +0100 |
tree | e829e8d3b91639982cc3ece17395deef691c2274 | |
parent | 62e1d4b4493f1a6c988fa2eaa5757aacddd9fc29 [diff] |
net: core: Do IPv4/6 packet checks only for those packet types The check_ip() in net_core.c did not check that the packet Ethernet type is either IPv4 or IPv6. This meant that we for example checked TTL also for ARP packets which is pointless as those are not IPv4 packets. Fix this by checking the link layer protocol type of the packet to be either IPv4 or IPv6 before doing L3 checks. Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>