OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61b590b
)
netfilter: ingress: fix wrong input interface on hook
author
Pablo Neira Ayuso
<pablo@netfilter.org>
Fri, 6 Nov 2015 17:35:57 +0000
(18:35 +0100)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Fri, 6 Nov 2015 18:33:12 +0000
(19:33 +0100)
The input and output interfaces in nf_hook_state_init() are flipped.
This fixes iif matching on nftables.
Reported-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter_ingress.h
patch
|
blob
|
history
diff --git
a/include/linux/netfilter_ingress.h
b/include/linux/netfilter_ingress.h
index
ba7ce88
..
5fcd375
100644
(file)
--- a/
include/linux/netfilter_ingress.h
+++ b/
include/linux/netfilter_ingress.h
@@
-19,8
+19,8
@@
static inline int nf_hook_ingress(struct sk_buff *skb)
struct nf_hook_state state;
nf_hook_state_init(&state, &skb->dev->nf_hooks_ingress,
- NF_NETDEV_INGRESS, INT_MIN, NFPROTO_NETDEV,
NULL,
- skb->dev, NULL, dev_net(skb->dev), NULL);
+ NF_NETDEV_INGRESS, INT_MIN, NFPROTO_NETDEV,
+ skb->dev, NULL,
NULL,
dev_net(skb->dev), NULL);
return nf_hook_slow(skb, &state);
}