diff options
author | Phil Sutter <phil@nwl.cc> | 2023-11-18 04:28:25 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2023-11-29 02:33:04 +0100 |
commit | fe70364b361194f5271661eb15207b10572d3fba (patch) | |
tree | 136e673514fc52039b5fe1cd481ecaba12e347a7 /iptables/ip6tables.c | |
parent | b2197e7834f779e8b28b80bc58bb58179360f66b (diff) |
xshared: Do not populate interface masks per default
These are needed by legacy variants only, so introduce a simplified
xtables_parse_interface() replacement which does not deal with them and
a small function which sets the mask based on given interface name for
use by legacy tools.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/ip6tables.c')
-rw-r--r-- | iptables/ip6tables.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/iptables/ip6tables.c b/iptables/ip6tables.c index 21cd8018..53eeb6e9 100644 --- a/iptables/ip6tables.c +++ b/iptables/ip6tables.c @@ -713,6 +713,9 @@ int do_command6(int argc, char *argv[], char **table, smasks = args.s.mask.v6; dmasks = args.d.mask.v6; + iface_to_mask(cs.fw6.ipv6.iniface, cs.fw6.ipv6.iniface_mask); + iface_to_mask(cs.fw6.ipv6.outiface, cs.fw6.ipv6.outiface_mask); + /* Attempt to acquire the xtables lock */ if (!restore) xtables_lock_or_exit(wait); |