History

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.

Pablo Neira Ayuso committed 3 months ago

Commit 55922231 parent 95133a44 files · +11 −2Browse files

Showing the changes to include (1 of 4 files). Show all

Unified · Split

include/linux/netdevice.h+1−0
@@ -941,6 +941,7 @@ struct net_device_path_stack { · 940 unmodified lines
941struct net_device_path_ctx {941struct net_device_path_ctx {
942 const struct net_device *dev;942 const struct net_device *dev;
943 u8 daddr[ETH_ALEN];943 u8 daddr[ETH_ALEN];
944 __be16 ether_type;
944 945
945 int num_vlans;946 int num_vlans;
946 struct {947 struct {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t