From ee4391d0ac1e7af57e4c707be81e83fc59002272 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 29 Apr 2020 14:11:13 +0200 Subject: nat: transform range to prefix expression when possible This patch transform a range of IP addresses to prefix when listing the ruleset. Signed-off-by: Pablo Neira Ayuso --- tests/py/ip6/dnat.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/py/ip6') diff --git a/tests/py/ip6/dnat.t b/tests/py/ip6/dnat.t index db5fde58..28bd7ef9 100644 --- a/tests/py/ip6/dnat.t +++ b/tests/py/ip6/dnat.t @@ -5,5 +5,5 @@ tcp dport 80-90 dnat to [2001:838:35f:1::]-[2001:838:35f:2::]:80-100;ok tcp dport 80-90 dnat to [2001:838:35f:1::]-[2001:838:35f:2::]:100;ok;tcp dport 80-90 dnat to [2001:838:35f:1::]-[2001:838:35f:2::]:100 tcp dport 80-90 dnat to [2001:838:35f:1::]:80;ok -dnat to [2001:838:35f:1::]/64;ok;dnat to 2001:838:35f:1::-2001:838:35f:1:ffff:ffff:ffff:ffff -dnat to 2001:838:35f:1::-2001:838:35f:1:ffff:ffff:ffff:ffff;ok +dnat to [2001:838:35f:1::]/64;ok;dnat to 2001:838:35f:1::/64 +dnat to 2001:838:35f:1::-2001:838:35f:1:ffff:ffff:ffff:ffff;ok;dnat to 2001:838:35f:1::/64 -- cgit v1.2.3