diff options
author | pst <pst@FreeBSD.org> | 1996-09-20 08:23:54 +0000 |
---|---|---|
committer | pst <pst@FreeBSD.org> | 1996-09-20 08:23:54 +0000 |
commit | 789349c3b08a5d1d6885c640e73d2f3957d63339 (patch) | |
tree | 6b9bc168493511e3f10bffc79f0e5ff6d6657445 /sys/netinet | |
parent | c19924b40999e4c8f0a8c7772bb76abf312ba197 (diff) | |
download | FreeBSD-src-789349c3b08a5d1d6885c640e73d2f3957d63339.zip FreeBSD-src-789349c3b08a5d1d6885c640e73d2f3957d63339.tar.gz |
Handle ICMP codes defined in RFC1812 more appropriately
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_icmp.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c index 4878b91..8fc9eaa 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 <sys/param.h> @@ -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; } |