]> git.ipfire.org Git - thirdparty/iptables.git/commit
xtables: Make invflags 16bit wide
authorPhil Sutter <phil@nwl.cc>
Mon, 2 Nov 2020 11:05:44 +0000 (12:05 +0100)
committerPhil Sutter <phil@nwl.cc>
Mon, 17 May 2021 13:06:40 +0000 (15:06 +0200)
commitf647f61f273a15ed25307d7ca7a19cefc828c54c
tree031886512dc3b45591dcd5789edab1fabeaf180c
parent616800af0da86d151cb695f1376d5ec6ede6fa72
xtables: Make invflags 16bit wide

This is needed to merge with xtables-arp which has more builtin
options and hence needs more bits in invflags.

The only adjustment needed is the set_option() call for option '-j'
which passed a pointer to cs->fw.ip.invflags. That field can't be
changed, it belongs to uAPI. Though using args->invflags instead works
fine, aside from that '-j' doesn't support inverting so this is merely a
sanity check and no real invflag value assignment will happen.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/nft-shared.h
iptables/xtables.c