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
..
2021-05-10 10:19:01 +01:00
2021-06-18 19:47:02 -07:00
2021-02-08 17:04:41 -07:00
2021-04-30 11:20:38 -07:00
2020-12-07 14:34:55 -07:00
2020-12-19 16:23:19 +01:00
2021-04-02 16:41:08 +02:00
2021-02-08 16:25:53 -07:00
2021-06-14 13:04:25 -07:00
2021-05-22 15:09:07 -10:00
2021-05-06 19:24:13 -07:00
2021-03-23 14:51:50 +01:00
2021-02-11 16:22:32 -05:00
2021-03-08 11:59:16 +01:00
2020-11-10 14:41:32 -07:00
2021-02-08 16:32:43 -07:00
2020-12-08 23:30:04 +09:00
2021-06-17 13:06:57 -04:00
2021-04-22 12:22:11 -07:00
2021-04-08 14:05:20 +02:00
2020-11-10 14:42:04 -07:00
2021-05-07 00:26:33 -07:00
2021-01-24 14:43:45 +01:00
2021-05-20 12:51:24 -07:00
2021-06-22 09:57:45 -07:00
2021-06-09 21:06:35 +02:00
2020-12-03 10:16:28 +01:00
2021-05-18 16:20:54 -05:00
2021-05-07 00:34:51 -07:00
2021-06-05 08:58:11 -07:00
2021-03-24 17:20:18 -07:00
2021-04-07 16:37:49 -06:00
2020-12-07 14:09:45 -07:00
2021-05-21 00:58:03 +10:00
2021-04-06 09:43:41 +02:00
2021-02-06 00:21:42 +01:00
2021-06-22 10:52:39 -07:00
2021-04-21 22:52:32 +10:00
2021-03-26 11:37:17 -06:00
2021-02-08 16:38:34 -07:00
2021-05-05 11:27:26 -07:00
2021-06-04 14:25:14 -07:00
2021-03-18 11:05:14 +01:00
2021-02-15 11:43:28 +01:00
2021-01-21 14:06:00 -07:00
2021-02-15 11:07:42 +01:00
2021-04-29 11:57:23 -07:00
2021-04-22 12:22:11 -07:00
2020-11-10 14:51:39 -07:00