]> git.ipfire.org Git - thirdparty/systemd.git/commit
add ipv6 range element creation test cases 18007/head
authorFlorian Westphal <fw@strlen.de>
Tue, 22 Dec 2020 11:57:00 +0000 (12:57 +0100)
committerFlorian Westphal <fw@strlen.de>
Tue, 19 Jan 2021 15:38:56 +0000 (16:38 +0100)
commit79dd22409325e99f255806ddf874173615628cfe
treee8878e2a9e082907e5d95d996d3aaf7ff5552d97
parentf4fca22ad45e1bf6a5cd5cc8dd32bf9366960954
add ipv6 range element creation test cases

The nft set backend doesn't support network masks, it works with
ranges.  Inputs like dead::/64 thus need to be translated to two
'start' and 'end' elements.

The 'start' element is the first element in the range (i.e., dead::).
The 'stop' element is the first element *past* the range, (dead:0:0100::
in the example).

This adds a few test cases.
src/shared/firewall-util-nft.c
src/test/test-firewall-util.c