netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Phil Sutter <phil@nwl.cc>
To: netfilter-devel@vger.kernel.org
Subject: [iptables PATCH] extensions: libip6t_icmp: Add names for mld-listener types
Date: Thu,  3 Aug 2023 17:02:32 +0200	[thread overview]
Message-ID: <20230803150232.30741-1-phil@nwl.cc> (raw)

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


             reply	other threads:[~2023-08-03 15:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-03 15:02 Phil Sutter [this message]
2023-08-04 23:43 ` [iptables PATCH] extensions: libip6t_icmp: Add names for mld-listener types Phil Sutter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230803150232.30741-1-phil@nwl.cc \
    --to=phil@nwl.cc \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).