]> git.ipfire.org Git - thirdparty/nftables.git/commit
src: make interval sets work with string datatypes
authorFlorian Westphal <fw@strlen.de>
Sat, 9 Apr 2022 13:58:28 +0000 (15:58 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 13 Apr 2022 11:43:35 +0000 (13:43 +0200)
commit2fb4d7ead460ec4fb00bd317d93a5e076f825b39
treefb50ec5e275ba6148a30ff93152ec5a77674251f
parent403936c1ffa34bc597d7ee0792154fc6c6b483f2
src: make interval sets work with string datatypes

Allows to interface names in interval sets:

table inet filter {
        set s {
                type ifname
                flags interval
                elements = { eth*, foo }
        }

Concatenations are not yet supported, also, listing is broken,
those strings will not be printed back because the values will remain
in big-endian order.  Followup patch will extend segtree to translate
this back to host byte order.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/expression.c
src/segtree.c