projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f92fcb5
)
netfilter: egress: Report interface as outgoing
author
Phil Sutter
<phil@nwl.cc>
Thu, 24 Mar 2022 14:02:40 +0000
(15:02 +0100)
committer
Florian Westphal
<fw@strlen.de>
Thu, 24 Mar 2022 14:09:53 +0000
(15:09 +0100)
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>
include/linux/netfilter_netdev.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/netfilter_netdev.h
b/include/linux/netfilter_netdev.h
index e6487a69113609307cf2ae0fd274bbab4b9d6012..8676316547cc407b15651f3fc7bbd6148acd1fb6 100644
(file)
--- 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 */