diff options
author | Phil Sutter <phil@nwl.cc> | 2020-11-02 12:05:44 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2021-05-17 15:06:40 +0200 |
commit | f647f61f273a15ed25307d7ca7a19cefc828c54c (patch) | |
tree | 031886512dc3b45591dcd5789edab1fabeaf180c /iptables/nft-shared.h | |
parent | 616800af0da86d151cb695f1376d5ec6ede6fa72 (diff) |
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>
Diffstat (limited to 'iptables/nft-shared.h')
-rw-r--r-- | iptables/nft-shared.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft-shared.h b/iptables/nft-shared.h index da4ba9d2..cc8f3a79 100644 --- a/iptables/nft-shared.h +++ b/iptables/nft-shared.h @@ -190,7 +190,7 @@ struct xtables_args { int family; uint16_t proto; uint8_t flags; - uint8_t invflags; + uint16_t invflags; char iniface[IFNAMSIZ], outiface[IFNAMSIZ]; unsigned char iniface_mask[IFNAMSIZ], outiface_mask[IFNAMSIZ]; bool goto_set; |