Re: Fw: sendpkt: Connection refused

Andi Kleen (ak@muc.de)
12 Oct 1998 18:39:21 +0200


mblack@csihq.com (Mike Black) writes:

> Thought I'd forward this from the DHCP list....can't say I've noticed this
> problem but maybe others have...
>
> -----Original Message-----
> From: Ted Lemon <mellon@hoffman.vix.com>
> To: breu@cfu.net <breu@cfu.net>
> Cc: dhcp-server@fugue.com <dhcp-server@fugue.com>
> Date: Sunday, October 11, 1998 5:12 PM
> Subject: Re: sendpkt: Connection refused
>
>
> > *** From dhcp-server -- To unsubscribe, see the end of this message.
> ***
> >
> >> Why exactly would I get this error?
> >>
> >> Oct 10 06:27:18 defiant dhcpd: sendpkt: Connection refused
> >
> >Because Linux stupidly reports ICMP errors it receives for a given UDP
> >port the next time you try to send on a socket bound to that port,
> >even though the error has nothing to do with the packet you're trying
> >to send. The error is essentially informational at this point - when
> >send_packet gets it while transmitting a packet, it just retransmits
> >the packet. Utterly bogus, but harmless to you.

He should either fix his program to do correct error handling
or set the SO_BSDCOMPAT option on the socket.

-Andi

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/