Skip to content

Commit

Permalink
netfilter: egress: Report interface as outgoing
Browse files Browse the repository at this point in the history
Otherwise packets in egress chains seem like they are being received by
the interface, not sent out via it.

Fixes: 42df6e1 ("netfilter: Introduce egress hook")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
  • Loading branch information
Phil Sutter authored and Florian Westphal committed Mar 24, 2022
1 parent f92fcb5 commit d645552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/netfilter_netdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit d645552

Please sign in to comment.