Re: UDP network problem

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sun, 17 Aug 1997 19:16:29 +0100 (BST)


> There's also a maximum UDP packet size that you may be running into. Some
> implementations of UDP will tell you (return an error) if you try to send a
> packet that's too big. Others will silently through the offending packet
> away.

No - please go and read the specifications. The largest UDP datagram is
a single precisely defined constant, governed by the 64K size limit for
an IP datagram. You will get -EMSGSIZE for overrunning it.

There are however plenty of systems out there that if passed a large
UDP datagram will discard it - notably print servers, embedded devices
DOS stacks and the like. UDP leaves it to the applications running at
each end of the link to handle this.

Alan