]> git.ipfire.org Git - thirdparty/nftables.git/commit
segtree: add expr_to_intervals()
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 22 Apr 2016 16:02:18 +0000 (18:02 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 27 Apr 2016 10:31:58 +0000 (12:31 +0200)
commita6df2f0654bdb9c413191b3dee0fd749e64cb8d7
tree037741417534a0a492cd10fb1c5a9b9403554937
parent15b525d172590191b4899cf1e403d15fb2f3db4a
segtree: add expr_to_intervals()

Refactor code to add the new expr_to_intervals(). This function takes
the list of set element expressions and convert them to a list of
half-closed intervals.

This is useful for different purposes, such as interval overlap
and conflicts detection.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/segtree.c