From: Andreas Herz Date: Thu, 20 Aug 2015 10:36:31 +0000 (+0200) Subject: extensions: icmp6: added missing icmpv6 dest-unreach codes X-Git-Tag: v1.6.0~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3de9e22ef018bd4f216bcead240c90c499cbb07c;p=thirdparty%2Fiptables.git extensions: icmp6: added missing icmpv6 dest-unreach codes 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 Signed-off-by: Pablo Neira Ayuso --- diff --git a/extensions/libip6t_icmp6.c b/extensions/libip6t_icmp6.c index 68b940bd..e183ce6b 100644 --- a/extensions/libip6t_icmp6.c +++ b/extensions/libip6t_icmp6.c @@ -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 },