]> git.ipfire.org Git - thirdparty/nftables.git/commit
tests: shell: make testcases which using tcp/udp port more rubost
authorLiping Zhang <liping.zhang@spreadtrum.com>
Sat, 11 Jun 2016 05:05:14 +0000 (13:05 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 15 Jun 2016 11:58:15 +0000 (13:58 +0200)
commit67ea3f3c1b14731d93618c426dd8a5d28aa314a1
tree839cc2e6b8474c2ba98f15329510466f112cd6ab
parent3503738f77cdbe521da1054a37f59ac2e442b4cf
tests: shell: make testcases which using tcp/udp port more rubost

In my mechain, port 12345 is mapped to italk in /etc/services:
  italk           12345/tcp               # Italk Chat System

So when we add nft rule with udp port "12345", nft list ruleset
will displayed it as "italk", that cause the result is not same
with expected, then testcase fail.

Add "-nn" option when dump the rulesets from the kernel, make
testcases which using tcp/udp port more rubost.

Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com>
Acked-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
tests/shell/testcases/netns/0001nft-f_0
tests/shell/testcases/netns/0002loosecommands_0
tests/shell/testcases/netns/0003many_0
tests/shell/testcases/nft-f/0002rollback_rule_0
tests/shell/testcases/nft-f/0003rollback_jump_0
tests/shell/testcases/nft-f/0004rollback_set_0
tests/shell/testcases/nft-f/0005rollback_map_0