Skip to content

Commit d645552

Browse files
Phil SutterFlorian Westphal
authored andcommitted
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: 42df6e1 ("netfilter: Introduce egress hook") Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: Florian Westphal <fw@strlen.de>
1 parent f92fcb5 commit d645552

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/linux/netfilter_netdev.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ static inline struct sk_buff *nf_hook_egress(struct sk_buff *skb, int *rc,
9999
return skb;
100100

101101
nf_hook_state_init(&state, NF_NETDEV_EGRESS,
102-
NFPROTO_NETDEV, dev, NULL, NULL,
102+
NFPROTO_NETDEV, NULL, dev, NULL,
103103
dev_net(dev), NULL);
104104

105105
/* nf assumes rcu_read_lock, not just read_lock_bh */

0 commit comments

Comments
 (0)