]> git.ipfire.org Git - thirdparty/nftables.git/commit
netlink: rework range_expr_to_prefix()
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 6 Sep 2021 20:04:51 +0000 (22:04 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 8 Sep 2021 23:13:47 +0000 (01:13 +0200)
commit34f31e741d961b059a990579c2402dc39981e1e8
tree5fd872e9d48bd603d2078165aeebe6b6e969f0da
parent10105b3fb0123dd4bb84e39f0611102247765b7b
netlink: rework range_expr_to_prefix()

Consolidate prefix calculation in range_expr_is_prefix().

Add tests/py for 9208fb30dc49 ("src: Check range bounds before converting to
prefix").

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/netlink.c
tests/py/ip/snat.t
tests/py/ip/snat.t.json
tests/py/ip/snat.t.payload