From c694ab9a3d00f0471bfdf73a1b00d43f60395717 Mon Sep 17 00:00:00 2001 From: Eric Garver Date: Thu, 2 Apr 2020 14:38:45 -0400 Subject: [PATCH 4/6] test: ipset: verify port ranges for non-default protocol (cherry picked from commit c0ad3a0b3340a27c34b33128f756f64acc3a771b) (cherry picked from commit a2b8a09b929901e14620aa802fd423f958c56188) --- src/tests/cli/firewall-cmd.at | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tests/cli/firewall-cmd.at b/src/tests/cli/firewall-cmd.at index c47c14ea1fc2..ad7b1b32f42c 100644 --- a/src/tests/cli/firewall-cmd.at +++ b/src/tests/cli/firewall-cmd.at @@ -743,6 +743,7 @@ FWD_START_TEST([ipset]) dnl multi dimensional set with non default protocol FWD_CHECK([--permanent --new-ipset=foobar --type=hash:ip,port], 0, ignore) FWD_CHECK([--permanent --ipset=foobar --add-entry=10.10.10.10,sctp:1234], 0, ignore) + FWD_CHECK([--permanent --ipset=foobar --add-entry=10.10.10.10,udp:1000-1002], 0, ignore) FWD_RELOAD FWD_CHECK([--ipset=foobar --add-entry=20.20.20.20,8080], 0, ignore) FWD_CHECK([--zone internal --add-source=ipset:foobar], 0, ignore) @@ -752,6 +753,7 @@ FWD_START_TEST([ipset]) type ipv4_addr . inet_proto . inet_service flags interval elements = { 10.10.10.10 . sctp . 1234, + 10.10.10.10 . udp . 1000-1002, 20.20.20.20 . tcp . 8080 } } } @@ -769,6 +771,9 @@ FWD_START_TEST([ipset]) Type: hash:ip,port Members: 10.10.10.10,sctp:1234 + 10.10.10.10,udp:1000 + 10.10.10.10,udp:1001 + 10.10.10.10,udp:1002 20.20.20.20,tcp:8080 ]) FWD_CHECK([--ipset=foobar --add-entry=1.2.3.4,sctp:8080], 0, ignore) -- 2.23.0