]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
extensions: icmp6: added missing icmpv6 dest-unreach codes
authorAndreas Herz <andi@geekosphere.org>
Thu, 20 Aug 2015 10:36:31 +0000 (12:36 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 14 Sep 2015 16:24:46 +0000 (18:24 +0200)
https://tools.ietf.org/html/rfc4443 says:

   ICMPv6 Fields:

   Type           1

   Code           0 - No route to destination
                  1 - Communication with destination
                        administratively prohibited
                  2 - Beyond scope of source address
                  3 - Address unreachable
                  4 - Port unreachable
                  5 - Source address failed ingress/egress policy
                  6 - Reject route to destination

Add missing code 2, 5 and 6.

Signed-off-by: Andreas Herz <andi@geekosphere.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extensions/libip6t_icmp6.c

index 68b940bd517d5fe19996712af3d0f3dd9bbede5c..e183ce6b0882d147891eb3a01a82109a6e2a3cb6 100644 (file)
@@ -19,8 +19,11 @@ static const struct icmpv6_names icmpv6_codes[] = {
        { "destination-unreachable", 1, 0, 0xFF },
        {   "no-route", 1, 0, 0 },
        {   "communication-prohibited", 1, 1, 1 },
+       {   "beyond-scope", 1, 2, 2 },
        {   "address-unreachable", 1, 3, 3 },
        {   "port-unreachable", 1, 4, 4 },
+       {   "failed-policy", 1, 5, 5 },
+       {   "reject-route", 1, 6, 6 },
 
        { "packet-too-big", 2, 0, 0xFF },