From 5592223f3d4e45fb5e98ea7fe9be075725f40ff7 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 6 Aug 2026 23:09:06 +0200 Subject: net: netfilter: add ether_type to net_device_path_ctx and use it Add an ether_type field to struct net_device_path_ctx to reject IPv4 over IPv6 and vice-versa, this is currently not support. Otherwise, incorrect dst_entry family can be reached from datapath. Acked-by: Lorenzo Bianconi Signed-off-by: Pablo Neira Ayuso --- include/linux/netdevice.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/linux') diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 17d28adb029b..2327a2703b83 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -941,6 +941,7 @@ struct net_device_path_stack { struct net_device_path_ctx { const struct net_device *dev; u8 daddr[ETH_ALEN]; + __be16 ether_type; int num_vlans; struct { -- cgit v1.2.3