summaryrefslogtreecommitdiffstats
path: root/extensions/libip6t_icmp6.c
diff options
context:
space:
mode:
authorAndreas Herz <andi@geekosphere.org>2015-08-20 12:36:31 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2015-09-14 18:24:46 +0200
commit3de9e22ef018bd4f216bcead240c90c499cbb07c (patch)
tree1dc3a7c8fe12890b298d8d2c3e129c1632c4ba56 /extensions/libip6t_icmp6.c
parent92dc4f6e0efeb55b1635790147b3dcac327f308f (diff)
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 <andi@geekosphere.org> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'extensions/libip6t_icmp6.c')
-rw-r--r--extensions/libip6t_icmp6.c3
1 files changed, 3 insertions, 0 deletions
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 },