path: root/tests/xlate/xlate.t.nft
Commit message (Collapse)AuthorAgeFilesLines
* Fix IPv6 sets nftables translationPablo Neira Ayuso2022-02-281-0/+2
| | | | | | | | | | | | | | | | | | The parser assumes the set is an IPv4 ipset because IPSET_OPT_FAMILY is not set. # ipset-translate restore < ./ipset-mwan3_set_connected_ipv6.dump add table inet global add set inet global mwan3_connected_v6 { type ipv6_addr; flags interval; } flush set inet global mwan3_connected_v6 ipset v7.15: Error in line 4: Syntax error: '64' is out of range 0-32 Remove ipset_xlate_type_get(), call ipset_xlate_set_get() instead to obtain the set type and family. Reported-by: Florian Eckert <> Fixes: 325af556cd3a ("add ipset to nftables translation infrastructure") Signed-off-by: Pablo Neira Ayuso <>
* tests: add tests ipset to nftablesPablo Neira Ayuso2021-06-261-0/+56
This test checks that the translation from ipset to nftables is correct. term$ cd tests/xlate term$ ./ in case that the translation is not correct, it shows the diff with expected translation output. Signed-off-by: Pablo Neira Ayuso <> Signed-off-by: Jozsef Kadlecsik <>