mirror_ubuntu-kernels/tools/testing/selftests/tc-testing/tc-tests/actions
Marcelo Ricardo Leitner e469056413 tc-testing: add test for ct DNAT tuple collision
When this test fails, /proc/net/nf_conntrack gets only 1 entry:
ipv4     2 tcp      6 119 SYN_SENT src=10.0.0.10 dst=10.0.0.10 sport=5000 dport=10 [UNREPLIED] src=20.0.0.1 dst=10.0.0.10 sport=10 dport=5000 mark=0 secctx=system_u:object_r:unlabeled_t:s0 zone=0 use=2

When it works, it gets 2 entries:
ipv4     2 tcp      6 119 SYN_SENT src=10.0.0.10 dst=10.0.0.20 sport=5000 dport=10 [UNREPLIED] src=20.0.0.1 dst=10.0.0.10 sport=10 dport=58203 mark=0 secctx=system_u:object_r:unlabeled_t:s0 zone=0 use=2
ipv4     2 tcp      6 119 SYN_SENT src=10.0.0.10 dst=10.0.0.10 sport=5000 dport=10 [UNREPLIED] src=20.0.0.1 dst=10.0.0.10 sport=10 dport=5000 mark=0 secctx=system_u:object_r:unlabeled_t:s0 zone=0 use=2

The missing entry is because the 2nd packet hits a tuple collusion and the
conntrack entry doesn't get allocated.

Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-06-22 10:52:39 -07:00
..
bpf.json tc-testing: avoid action cookies with odd length. 2020-06-25 16:10:45 -07:00
connmark.json net/sched: act_connmark: validate the control action inside init() 2019-03-21 13:26:41 -07:00
csum.json tc-testing: avoid action cookies with odd length. 2020-06-25 16:10:45 -07:00
ct.json tc-testing: add test for ct DNAT tuple collision 2021-06-22 10:52:39 -07:00
gact.json tc-testing: implement tests for new fast_init action flag 2019-10-30 18:07:51 -07:00
ife.json net/sched: act_ife: validate the control action inside init() 2019-03-21 13:26:41 -07:00
mirred.json tc-testing: implement tests for new fast_init action flag 2019-10-30 18:07:51 -07:00
mpls.json tc-testing: added tests with cookie for mpls TC action 2019-11-05 17:49:43 -08:00
nat.json net/sched: act_nat: validate the control action inside init() 2019-03-21 13:26:41 -07:00
pedit.json selftests: tc-testing: Add a TDC test for pedit munge ip6 dsfield 2020-04-22 19:48:57 -07:00
police.json selftests: tc-testing: add action police selftest for packets per second 2021-03-28 17:48:28 -07:00
sample.json net/sched: act_sample: fix divide by zero in the traffic path 2019-04-04 10:46:33 -07:00
simple.json tc-testing: add simple action test to verify batch change cleanup 2021-04-08 13:50:14 -07:00
skbedit.json tc-testing: updated skbedit action tests with batch create/delete 2019-08-08 22:37:06 -07:00
skbmod.json net/sched: act_skbmod: validate the control action inside init() 2019-03-21 13:26:42 -07:00
tunnel_key.json tc-testing: avoid action cookies with odd length. 2020-06-25 16:10:45 -07:00
vlan.json net/sched: act_vlan: Test priority 0 modification 2021-06-01 16:54:42 -07:00