netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [iptables PATCH] extensions: libip6t_icmp: Add names for mld-listener types
@ 2023-08-03 15:02 Phil Sutter
  2023-08-04 23:43 ` Phil Sutter
  0 siblings, 1 reply; 2+ messages in thread
From: Phil Sutter @ 2023-08-03 15:02 UTC (permalink / raw)
  To: netfilter-devel

Add the three names (plus one alias) just as in nftables.

Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1250
Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 extensions/libip6t_icmp6.t | 4 ++++
 extensions/libxt_icmp.h    | 7 +++++++
 2 files changed, 11 insertions(+)

diff --git a/extensions/libip6t_icmp6.t b/extensions/libip6t_icmp6.t
index 028cfc16ede24..b9a4dcd3abc77 100644
--- a/extensions/libip6t_icmp6.t
+++ b/extensions/libip6t_icmp6.t
@@ -4,3 +4,7 @@
 -p ipv6-icmp -m icmp6 --icmpv6-type 2;=;OK
 # cannot use option twice:
 -p ipv6-icmp -m icmp6 --icmpv6-type no-route --icmpv6-type packet-too-big;;FAIL
+-p ipv6-icmp -m icmp6 --icmpv6-type mld-listener-query;-p ipv6-icmp -m icmp6 --icmpv6-type 130;OK
+-p ipv6-icmp -m icmp6 --icmpv6-type mld-listener-report;-p ipv6-icmp -m icmp6 --icmpv6-type 131;OK
+-p ipv6-icmp -m icmp6 --icmpv6-type mld-listener-done;-p ipv6-icmp -m icmp6 --icmpv6-type 132;OK
+-p ipv6-icmp -m icmp6 --icmpv6-type mld-listener-reduction;-p ipv6-icmp -m icmp6 --icmpv6-type 132;OK
diff --git a/extensions/libxt_icmp.h b/extensions/libxt_icmp.h
index a763e50c1de32..7a45b4bd2ec6d 100644
--- a/extensions/libxt_icmp.h
+++ b/extensions/libxt_icmp.h
@@ -83,6 +83,13 @@ static const struct xt_icmp_names {
 	{ "echo-reply", 129, 0, 0xFF },
 	/* Alias */ { "pong", 129, 0, 0xFF },
 
+	{ "mld-listener-query", 130, 0, 0xFF },
+
+	{ "mld-listener-report", 131, 0, 0xFF },
+
+	{ "mld-listener-done", 132, 0, 0xFF },
+	/* Alias */ { "mld-listener-reduction", 132, 0, 0xFF },
+
 	{ "router-solicitation", 133, 0, 0xFF },
 
 	{ "router-advertisement", 134, 0, 0xFF },
-- 
2.40.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [iptables PATCH] extensions: libip6t_icmp: Add names for mld-listener types
  2023-08-03 15:02 [iptables PATCH] extensions: libip6t_icmp: Add names for mld-listener types Phil Sutter
@ 2023-08-04 23:43 ` Phil Sutter
  0 siblings, 0 replies; 2+ messages in thread
From: Phil Sutter @ 2023-08-04 23:43 UTC (permalink / raw)
  To: netfilter-devel

On Thu, Aug 03, 2023 at 05:02:32PM +0200, Phil Sutter wrote:
> Add the three names (plus one alias) just as in nftables.
> 
> Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1250
> Signed-off-by: Phil Sutter <phil@nwl.cc>

Patch applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-04 23:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-03 15:02 [iptables PATCH] extensions: libip6t_icmp: Add names for mld-listener types Phil Sutter
2023-08-04 23:43 ` Phil Sutter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).