]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: restrict ct saddr test to inet family
authorFlorian Westphal <fw@strlen.de>
Fri, 16 Jun 2017 19:52:32 +0000 (21:52 +0200)
committerFlorian Westphal <fw@strlen.de>
Sun, 18 Jun 2017 21:28:57 +0000 (23:28 +0200)
commit6939b8b3fdb6d90f76883e65524017180e065608
tree69c01e9d51db208fb2f83703bd7694e6f1c98d84
parentc20142bba09b72f398ccf8260715cd6ed9a0e865
tests: restrict ct saddr test to inet family

any/ct.t: ERROR: line 94: src/nft add rule --debug=netlink ip6
test-ip6 output meta nfproto ipv4 ct original saddr 1.2.3.4: This rule should not have failed.

Actually, this failure is "ok; we can't find upper layer protocol
in this case, but even if we'd "fix" this it is still non-sensical,
meta nfproto ipv4, but family is ipv6 --> rule would never match.

First move this to an inet-specific test.
A followup patch will reject meta nfproto for all families except inet.

Reported-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/py/any/ct.t
tests/py/any/ct.t.payload
tests/py/inet/ct.t [new file with mode: 0644]
tests/py/inet/ct.t.payload [new file with mode: 0644]