summaryrefslogtreecommitdiff
path: root/include/linux/netfilter_netdev.h
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2022-03-24 17:02:40 +0300
committerFlorian Westphal <fw@strlen.de>2022-03-24 17:09:53 +0300
commitd645552e9bd96671079b27015294ec7f9748fa2b (patch)
tree1e998a78bd3ed066ef7821be19cb7ecae4e524ae /include/linux/netfilter_netdev.h
parentf92fcb5c00dc924a4661d5bf68de7937040f26b8 (diff)
downloadlinux-d645552e9bd96671079b27015294ec7f9748fa2b.tar.xz
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>
Diffstat (limited to 'include/linux/netfilter_netdev.h')
-rw-r--r--include/linux/netfilter_netdev.h2
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 */