]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
proto: use parameter-problem for icmpv6 type
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 1 Feb 2016 13:51:02 +0000 (14:51 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 1 Feb 2016 18:01:52 +0000 (19:01 +0100)
To keep it consistent with icmpv4 naming.

Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=911
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/proto.c
tests/py/ip6/icmpv6.t
tests/py/ip6/icmpv6.t.payload.ip6

index 0cd9fdbd09e901d6251c0d80b172083f0c487a77..0ed98ed3a6c8e73aef27fa2cc212473aec69935a 100644 (file)
@@ -542,7 +542,7 @@ static const struct symbol_table icmp6_type_tbl = {
                SYMBOL("destination-unreachable",       ICMP6_DST_UNREACH),
                SYMBOL("packet-too-big",                ICMP6_PACKET_TOO_BIG),
                SYMBOL("time-exceeded",                 ICMP6_TIME_EXCEEDED),
-               SYMBOL("param-problem",                 ICMP6_PARAM_PROB),
+               SYMBOL("parameter-problem",             ICMP6_PARAM_PROB),
                SYMBOL("echo-request",                  ICMP6_ECHO_REQUEST),
                SYMBOL("echo-reply",                    ICMP6_ECHO_REPLY),
                SYMBOL("mld-listener-query",            MLD_LISTENER_QUERY),
index af40bf71a739c9d03686399c3f726f71abeb8f1a..6892273cde1a91398adac2ed3ca7faaf758a77e7 100644 (file)
@@ -17,6 +17,7 @@ icmpv6 type nd-router-advert accept;ok
 icmpv6 type nd-neighbor-solicit accept;ok
 icmpv6 type nd-neighbor-advert accept;ok
 icmpv6 type nd-redirect accept;ok
+icmpv6 type parameter-problem accept;ok
 icmpv6 type router-renumbering accept;ok
 icmpv6 type {destination-unreachable, time-exceeded, nd-router-solicit} accept;ok
 icmpv6 type {router-renumbering, mld-listener-reduction, time-exceeded, nd-router-solicit} accept;ok
index 55af9d8df4b8f905c9ff40cfa6ae63b039d9b6d3..d13b7991d6528ac84ec01e29fc0584afab907ede 100644 (file)
@@ -102,6 +102,14 @@ ip6 test-ip6 input
   [ cmp eq reg 1 0x00000089 ]
   [ immediate reg 0 accept ]
 
+# icmpv6 type parameter-problem accept
+ip6 test-ip6 input
+  [ payload load 1b @ network header + 6 => reg 1 ]
+  [ cmp eq reg 1 0x0000003a ]
+  [ payload load 1b @ transport header + 0 => reg 1 ]
+  [ cmp eq reg 1 0x00000004 ]
+  [ immediate reg 0 accept ]
+
 # icmpv6 type router-renumbering accept
 ip6 test-ip6 input
   [ payload load 1b @ network header + 6 => reg 1 ]