Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Question about ICMP behaviour with UDP

0 views
Skip to first unread message

bra...@isi.edu

unread,
May 8, 1995, 3:00:00 AM5/8/95
to

*> From myc...@gnu.ai.mit.edu Sat May 6 01:25:01 1995
*> Date: Sat, 6 May 1995 04:24:56 -0400
*> From: "Charles M. Hannum" <myc...@ai.mit.edu>
*> To: bra...@ISI.EDU
*> Subject: Question about ICMP behaviour with UDP
*> Content-Length: 727
*> X-Lines: 20
*>
*>
*> Someone has claimed that the BSD algorithm of only reporting
*> ICMP-induced errors to UDP sockets when they are bound violates RFC
*> 1122 section 4.1.3.3.
*>
*> It is my impression that the wording:
*>
*> A UDP-based
*> application that wants to receive ICMP error messages
*> is responsible for maintaining the state necessary to
*> demultiplex these messages when they arrive; for
*> example, the application may keep a pending receive
*> operation for this purpose.
*>
*> specifically allows the BSD implementation, by recognizing that the
*> application may need to take some explicit action in order to receive
*> the errors.
*>
*> What is your interpretation of this?
*>
*>

Charles,

I don't recall the details of the BSD mechanism, and perhaps there is
some way in which it is not optimal. Nevertheless, as the words you
quote from RFC-1122 seem to say pretty well ( :-) ), some such mechanism
is necessary. How could the kernel know what application to deliver an
ICMP message to, if the application has not in some way registered it
network identity?? In BSD, that mechanism would seem to be bind().

So, I would say the words allow the BSD implementation, modulo some
possible unnecessary dumbness.

Bob Braden

0 new messages