]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
nft: fix match revision lookup for IPv6
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 30 Jul 2013 09:39:59 +0000 (11:39 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 30 Dec 2013 22:50:40 +0000 (23:50 +0100)
IPT_SO_GET_REVISION_MATCH != IP6T_SO_GET_REVISION_MATCH, thus,
the revision infrastructure was looking for targets instead
matches.

iptables/nft.c

index 68fc153984c142c4e9264f0a73a5edd9a74da8f2..bbe5e3965300d5f5c7395bb75f606fcb9fbc07c7 100644 (file)
@@ -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;