diff options
author | Phil Sutter <phil@nwl.cc> | 2023-03-05 12:46:49 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2023-03-10 13:16:51 +0100 |
commit | 844f591866865e1d6ff0066e93123458a46b1caf (patch) | |
tree | 8eb00dce7bf5fa4eafc385f104b3192836c8180f /tests/xlate/xlate.t.nft | |
parent | 621f3a27d058d1e2e3e884fa70503e2de5b6c742 (diff) |
tests: xlate: Make test input valid
Make sure ipset at least accepts the test input by running it against
plain ipset once for sanity. This exposed two issues:
* Set 'hip5' doesn't have comment support, so add the commented elements
to 'hip6' instead (likely a typo).
* Set 'bip1' range 2.0.0.1-2.1.0.1 exceeds the max allowed for bitmap
sets. Reduce it accordingly.
Fixes: 7587d1c4b5465 ("tests: add tests ipset to nftables")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'tests/xlate/xlate.t.nft')
-rw-r--r-- | tests/xlate/xlate.t.nft | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/xlate/xlate.t.nft b/tests/xlate/xlate.t.nft index 0152a30..8fb2a29 100644 --- a/tests/xlate/xlate.t.nft +++ b/tests/xlate/xlate.t.nft @@ -12,8 +12,8 @@ add element inet global hip4 { 192.168.10.0/24 } add set inet global hip5 { type ipv4_addr; size 24; } add element inet global hip5 { 192.168.10.0 } add set inet global hip6 { type ipv4_addr; } -add element inet global hip5 { 192.168.10.1 } -add element inet global hip5 { 192.168.10.2 comment "this is a comment" } +add element inet global hip6 { 192.168.10.1 } +add element inet global hip6 { 192.168.10.2 comment "this is a comment" } add set inet global ipp1 { type ipv4_addr . inet_proto . inet_service; } add element inet global ipp1 { 192.168.10.1 . tcp . 0 } add element inet global ipp1 { 192.168.10.2 . tcp . 5 } |