]> git.ipfire.org Git - thirdparty/ipset.git/commit
tests: xlate: Make test input valid
authorPhil Sutter <phil@nwl.cc>
Sun, 5 Mar 2023 11:46:49 +0000 (12:46 +0100)
committerPhil Sutter <phil@nwl.cc>
Fri, 10 Mar 2023 12:16:51 +0000 (13:16 +0100)
commit844f591866865e1d6ff0066e93123458a46b1caf
tree8eb00dce7bf5fa4eafc385f104b3192836c8180f
parent621f3a27d058d1e2e3e884fa70503e2de5b6c742
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>
tests/xlate/runtest.sh
tests/xlate/xlate.t
tests/xlate/xlate.t.nft