NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/47693: NetBSD ICMP processing does not handle unreachable code 13 - administratively prohibited
The following reply was made to PR kern/47693; it has been noted by GNATS.
From: "Erik E. Fair" <fair%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: kern/47693: NetBSD ICMP processing does not handle unreachable
code 13 - administratively prohibited
Date: Mon, 25 Mar 2013 11:26:28 -0700
Actually, I changed my mind; we need an EPERM return (see ip_input.c),
but failing that, "connection refused" is a more appropriate error
code to return.
*** ip_icmp.c Mon Jan 9 06:31:22 2012
--- /tmp/ip_icmp.c Mon Mar 25 11:24:12 2013
***************
*** 470,475 ****
--- 470,476 ----
break;
case ICMP_UNREACH_PORT:
+ case ICMP_UNREACH_ADMIN_PROHIBIT:
code = PRC_UNREACH_PORT;
break;
Home |
Main Index |
Thread Index |
Old Index