diff options
author | Phil Sutter <phil@nwl.cc> | 2023-11-15 13:55:08 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2023-11-29 02:33:03 +0100 |
commit | b2197e7834f779e8b28b80bc58bb58179360f66b (patch) | |
tree | 9f3196b9054f0bfe5e751745d5e0fee571fffd64 /iptables/ip6tables.c | |
parent | 9c09d28102bb4bd833b1a814c0766e89250dbc1e (diff) |
xshared: Entirely ignore interface masks when saving rules
Rule printing code does this for more than 20 years now, assume it's
safe to rely upon the wildcard interface name to contain a '+' suffix.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/ip6tables.c')
-rw-r--r-- | iptables/ip6tables.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/iptables/ip6tables.c b/iptables/ip6tables.c index 08da04b4..21cd8018 100644 --- a/iptables/ip6tables.c +++ b/iptables/ip6tables.c @@ -509,8 +509,7 @@ void print_rule6(const struct ip6t_entry *e, save_ipv6_addr('d', &e->ipv6.dst, &e->ipv6.dmsk, e->ipv6.invflags & IP6T_INV_DSTIP); - save_rule_details(e->ipv6.iniface, e->ipv6.iniface_mask, - e->ipv6.outiface, e->ipv6.outiface_mask, + save_rule_details(e->ipv6.iniface, e->ipv6.outiface, e->ipv6.proto, 0, e->ipv6.invflags); #if 0 |