netfilter: nft_set_rbtree: allow loose matching of closing element in interval
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 1 Oct 2018 11:27:32 +0000 (13:27 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 11 Oct 2018 09:29:14 +0000 (11:29 +0200)
commit3b18d5eba491b2328b31efa4235724a2354af010
tree566212c7112cb126d124e57634e3b88386d71b93
parent9a4890bd6d6325a1c88564a20ab310b2d56f6094
netfilter: nft_set_rbtree: allow loose matching of closing element in interval

Allow to find closest matching for the right side of an interval (end
flag set on) so we allow lookups in inner ranges, eg. 10-20 in 5-25.

Fixes: ba0e4d9917b4 ("netfilter: nf_tables: get set elements via netlink")
Reported-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_set_rbtree.c