On Tue, Mar 27, 2001 at 06:36:46PM +0200, Jesper Skriver wrote:
> On Tue, Mar 27, 2001 at 10:19:22AM -0600, Jonathan Lemon wrote:
> > 
> > I forget why I picked ENETRESET; probably because it was the first
> > thing that leaped out at me when I quickly skimmed over <sys/errno.h>
> > looking for an appropriate error code; but I didn't consider the UDP
> > case.
> 
> That is the below diff
> 
> Index: src/sys/netinet/ip_input.c
> ===================================================================
> RCS file: /home/ncvs/src/sys/netinet/ip_input.c,v
> retrieving revision 1.130.2.21
> diff -u -r1.130.2.21 ip_input.c
> --- src/sys/netinet/ip_input.c        2001/03/08 23:14:54     1.130.2.21
> +++ src/sys/netinet/ip_input.c        2001/03/27 16:35:15
> @@ -1484,7 +1484,7 @@
>       EHOSTUNREACH,   EHOSTUNREACH,   ECONNREFUSED,   ECONNREFUSED,
>       EMSGSIZE,       EHOSTUNREACH,   0,              0,
>       0,              0,              0,              0,
> -     ENOPROTOOPT,    ENETRESET
> +     ENOPROTOOPT,    ECONNREFUSED
>  };

Yes, I think this probably is the best approach; just get rid 
of the ENETRESET altogether for this case.
--
Jonathan

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to