From 9c4b2574d493d4386bbd148b36323aba2299961c Mon Sep 17 00:00:00 2001 From: Paul Traina Date: Fri, 20 Sep 1996 08:23:54 +0000 Subject: [PATCH] Handle ICMP codes defined in RFC1812 more appropriately --- sys/netinet/ip_icmp.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c index 4878b914dede..8fc9eaa2d7ce 100644 --- a/sys/netinet/ip_icmp.c +++ b/sys/netinet/ip_icmp.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ip_icmp.c 8.2 (Berkeley) 1/4/94 - * $Id: ip_icmp.c,v 1.20 1996/04/03 18:52:22 wollman Exp $ + * $Id: ip_icmp.c,v 1.21 1996/07/24 18:46:17 wollman Exp $ */ #include @@ -272,6 +272,12 @@ icmp_input(m, hlen) code = PRC_UNREACH_HOST; break; + case ICMP_UNREACH_FILTER_PROHIB: + case ICMP_UNREACH_HOST_PRECEDENCE: + case ICMP_UNREACH_PRECEDENCE_CUTOFF: + code = PRC_UNREACH_PORT; + break; + default: goto badcode; }