projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11b57f9
)
netfilter: nf_tables: fix missing byteorder conversion in policy
author
Pablo Neira Ayuso
<pablo@netfilter.org>
Fri, 10 Jan 2014 14:11:25 +0000
(15:11 +0100)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Fri, 10 Jan 2014 17:26:13 +0000
(18:26 +0100)
When fetching the policy attribute, the byteorder conversion was
missing, breaking the chain policy setting.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nf_tables_api.c
b/net/netfilter/nf_tables_api.c
index
36add31
..
117bbaa
100644
(file)
--- a/
net/netfilter/nf_tables_api.c
+++ b/
net/netfilter/nf_tables_api.c
@@
-859,7
+859,7
@@
static int nf_tables_newchain(struct sock *nlsk, struct sk_buff *skb,
nla[NFTA_CHAIN_HOOK] == NULL)
return -EOPNOTSUPP;
- policy = n
la_get_be32(nla[NFTA_CHAIN_POLICY]
);
+ policy = n
tohl(nla_get_be32(nla[NFTA_CHAIN_POLICY])
);
switch (policy) {
case NF_DROP:
case NF_ACCEPT: