mirror-linux/drivers/net/ipvlan
Dmitry Skorodumov 0c57ff008a ipvlan: Ignore PACKET_LOOPBACK in handle_mode_l2()
Packets with pkt_type == PACKET_LOOPBACK are captured by
handle_frame() function, but they don't have L2 header.
We should not process them in handle_mode_l2().

This doesn't affect old L2 functionality, since handling
was anyway incorrect.

Handle them the same way as in br_handle_frame():
just pass the skb.

To observe invalid behaviour, just start "ping -b" on bcast address
of port-interface.

Fixes: 2ad7bf3638 ("ipvlan: Initial check-in of the IPVLAN driver.")
Signed-off-by: Dmitry Skorodumov <skorodumov.dmitry@huawei.com>
Link: https://patch.msgid.link/20251202103906.4087675-1-skorodumov.dmitry@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2025-12-04 13:43:12 +01:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
ipvlan.h rtnetlink: Pack newlink() params into struct 2025-02-21 15:28:02 -08:00
ipvlan_core.c ipvlan: Ignore PACKET_LOOPBACK in handle_mode_l2() 2025-12-04 13:43:12 +01:00
ipvlan_l3s.c net: fix NULL pointer dereference in l3mdev_l3_rcv 2025-03-25 08:22:45 -07:00
ipvlan_main.c net: s/dev_pre_changeaddr_notify/netif_pre_changeaddr_notify/ 2025-07-18 17:27:47 -07:00
ipvtap.c rtnetlink: Pack newlink() params into struct 2025-02-21 15:28:02 -08:00