diff options
author | Phil Sutter <phil@nwl.cc> | 2022-03-24 15:02:40 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2022-03-24 15:09:53 +0100 |
commit | d645552e9bd96671079b27015294ec7f9748fa2b (patch) | |
tree | 1e998a78bd3ed066ef7821be19cb7ecae4e524ae | |
parent | Merge branch 'ice-avoid-sleeping-scheduling-in-atomic-contexts' (diff) | |
download | linux-d645552e9bd96671079b27015294ec7f9748fa2b.tar.xz linux-d645552e9bd96671079b27015294ec7f9748fa2b.zip |
netfilter: egress: Report interface as outgoing
Otherwise packets in egress chains seem like they are being received by
the interface, not sent out via it.
Fixes: 42df6e1d221dd ("netfilter: Introduce egress hook")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
-rw-r--r-- | include/linux/netfilter_netdev.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netfilter_netdev.h b/include/linux/netfilter_netdev.h index e6487a691136..8676316547cc 100644 --- a/include/linux/netfilter_netdev.h +++ b/include/linux/netfilter_netdev.h @@ -99,7 +99,7 @@ static inline struct sk_buff *nf_hook_egress(struct sk_buff *skb, int *rc, return skb; nf_hook_state_init(&state, NF_NETDEV_EGRESS, - NFPROTO_NETDEV, dev, NULL, NULL, + NFPROTO_NETDEV, NULL, dev, NULL, dev_net(dev), NULL); /* nf assumes rcu_read_lock, not just read_lock_bh */ |