From 16e46548499d336899ee051e805ae4e5c92cc403 Mon Sep 17 00:00:00 2001 From: Andreas Herz Date: Fri, 21 Aug 2015 11:33:05 +0200 Subject: added missing icmpv6 codes in REJECT RFC 4443 added two new codes values for ICMPv6 type 1: 5 - Source address failed ingress/egress policy 6 - Reject route to destination And RFC 7084 states in L-14 that IPv6 Router MUST send ICMPv6 Destination Unreachable with code 5 for packets forwarded to it that use an address from a prefix that has been invalidated. Signed-off-by: Andreas Herz Signed-off-by: Pablo Neira Ayuso --- extensions/libip6t_REJECT.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'extensions/libip6t_REJECT.c') diff --git a/extensions/libip6t_REJECT.c b/extensions/libip6t_REJECT.c index 8085321a..d62f4315 100644 --- a/extensions/libip6t_REJECT.c +++ b/extensions/libip6t_REJECT.c @@ -35,7 +35,11 @@ static const struct reject_names reject_table[] = { {"icmp6-port-unreachable", "port-unreach", IP6T_ICMP6_PORT_UNREACH, "ICMPv6 port unreachable"}, {"tcp-reset", "tcp-reset", - IP6T_TCP_RESET, "TCP RST packet"} + IP6T_TCP_RESET, "TCP RST packet"}, + {"icmp6-policy-fail", "policy-fail", + IP6T_ICMP6_POLICY_FAIL, "ICMPv6 policy fail"}, + {"icmp6-reject-route", "reject-route", + IP6T_ICMP6_REJECT_ROUTE, "ICMPv6 reject route"} }; static void -- cgit v1.2.3