From a8e623b6c74b79f1aabdb50166ee2b56372474cf Mon Sep 17 00:00:00 2001 From: Mikhail Sennikovsky Date: Fri, 25 Sep 2020 14:49:12 +0200 Subject: tests: icmp entry create/delete Add test to cover icmp entry creation/deletion with conntrack Signed-off-by: Mikhail Sennikovsky Signed-off-by: Pablo Neira Ayuso --- tests/conntrack/testsuite/00create | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/conntrack/testsuite/00create b/tests/conntrack/testsuite/00create index 4e55a7b..911e711 100644 --- a/tests/conntrack/testsuite/00create +++ b/tests/conntrack/testsuite/00create @@ -30,3 +30,7 @@ -D -s 2001:DB8::1.1.1.1 -d 2001:DB8::2.2.2.2 -p tcp --sport 10 --dport 20 ; OK # mismatched address family -I -s 2001:DB8::1.1.1.1 -d 2.2.2.2 -p tcp --sport 10 --dport 20 --state LISTEN -u SEEN_REPLY -t 50 ; BAD +# creae icmp ping request entry +-I -t 29 -u SEEN_REPLY -s 1.1.1.1 -d 2.2.2.2 -r 2.2.2.2 -q 1.1.1.1 -p icmp --icmp-type 8 --icmp-code 0 --icmp-id 1226 ; OK +# delete icmp ping request entry +-D -u SEEN_REPLY -s 1.1.1.1 -d 2.2.2.2 -r 2.2.2.2 -q 1.1.1.1 -p icmp --icmp-type 8 --icmp-code 0 --icmp-id 1226 ; OK -- cgit v1.2.3