summaryrefslogtreecommitdiffstats
path: root/iptables/ip6tables.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2023-11-15 13:55:08 +0100
committerPhil Sutter <phil@nwl.cc>2023-11-29 02:33:03 +0100
commitb2197e7834f779e8b28b80bc58bb58179360f66b (patch)
tree9f3196b9054f0bfe5e751745d5e0fee571fffd64 /iptables/ip6tables.c
parent9c09d28102bb4bd833b1a814c0766e89250dbc1e (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.c3
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