]> git.ipfire.org Git - thirdparty/iptables.git/commit
libxtables: Fix guided option parser for use with arptables
authorPhil Sutter <phil@nwl.cc>
Thu, 2 Sep 2021 14:51:15 +0000 (16:51 +0200)
committerPhil Sutter <phil@nwl.cc>
Thu, 23 Nov 2023 17:01:21 +0000 (18:01 +0100)
commitb1c5270bdf35138d7459349df487e1c9e18c4c32
tree6a03ca5512b0d5ff1707b5e57dc91dda8296f54d
parented8c3ea4015f03b34d52d0289b90821bda0384dc
libxtables: Fix guided option parser for use with arptables

With an unexpected value in afinfo->family, guided option parser was
rather useless when called from arptables extensions. Introduce
afinfo_family() wrapper to sanitize at least NFPROTO_ARP value.

Signed-off-by: Phil Sutter <phil@nwl.cc>
libxtables/xtoptions.c