netdev
[Top] [All Lists]

Re: PATCH Re: udp weirdness

To: kuznet@xxxxxxxxxxxxx
Subject: Re: PATCH Re: udp weirdness
From: Chris Friesen <cfriesen@xxxxxxxxxxxxxxxxxx>
Date: Tue, 01 Oct 2002 13:17:34 -0400
Cc: hadi@xxxxxxxxxx, netdev@xxxxxxxxxxx
References: <200210011641.UAA20171@xxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.8) Gecko/20020204
kuznet@xxxxxxxxxxxxx wrote:

Hmm...so even with IP_RECVERR I may not be notified if the packet is dropped?


Do you not jest occasionally? :-) "Even" sounds interesting, because
this kind of errors cannot be reported _principially_ without IP_RECVERR,
providing asynchronous error reporting.

The point that I fundamentally need IP_RECVERR for async errors is interesting, I'll have to look into that. Thanks for the pointer.

Packet can be dropped, damaged _after_ they are successfully queued
to the device. And this need not to be emphasized in documentation
on IP_RECVERR, except for a section "FUTURE DEVELOPMENT".

This is certainly true, but I would hope that packets being damaged or dropped after being queued to the device would be a rare event. It would still be good to have them reported though.

I understand the problems with regards to blocking sockets, since you can't block after the select() passes and select() doesn't know where the packet is going. It seems that it should be pretty straightforward to enable ENOBUFS for nonblocking sockets though--am I missing something?

For now I'll play with SO_SNDBUF and IP_RECVERR.

Thanks,

Chris


<Prev in Thread] Current Thread [Next in Thread>