summaryrefslogtreecommitdiffstats
path: root/iptables
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2013-07-30 11:39:59 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-12-30 23:50:40 +0100
commit85512f09680a798ebe92e96ad62eeae863fbc791 (patch)
tree8f6280b9ff2a13cde21ae0778e9fed3538466c6e /iptables
parent96180491d51853a4315ba4eeb29a53505b6515e5 (diff)
nft: fix match revision lookup for IPv6
IPT_SO_GET_REVISION_MATCH != IP6T_SO_GET_REVISION_MATCH, thus, the revision infrastructure was looking for targets instead matches.
Diffstat (limited to 'iptables')
-rw-r--r--iptables/nft.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/iptables/nft.c b/iptables/nft.c
index 68fc1539..bbe5e396 100644
--- a/iptables/nft.c
+++ b/iptables/nft.c
@@ -2730,7 +2730,8 @@ int nft_compatible_revision(const char *name, uint8_t rev, int opt)
uint32_t portid, seq, type;
int ret = 0;
- if (opt == IPT_SO_GET_REVISION_MATCH)
+ if (opt == IPT_SO_GET_REVISION_MATCH ||
+ opt == IP6T_SO_GET_REVISION_MATCH)
type = 0;
else
type = 1;