summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2026-08-06 23:09:06 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2026-08-10 13:02:28 +0200
commit5592223f3d4e45fb5e98ea7fe9be075725f40ff7 (patch)
tree941e2b393c38d54bd1611d3cd3f78155c4494fae /include
parent95133a416809c7e822da4023b7f4193ef2620796 (diff)
downloadlinux-5592223f3d4e45fb5e98ea7fe9be075725f40ff7.tar.gz
linux-5592223f3d4e45fb5e98ea7fe9be075725f40ff7.zip
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 <lorenzo@kernel.org> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netdevice.h1
1 files changed, 1 insertions, 0 deletions
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 {