Re: UDP bugs

Andi Kleen (ak@muc.de)
Sun, 13 Dec 1998 14:32:23 +0100


You wrote:
> Date: Sun, 13 Dec 1998 20:18:58 +1100
> From: Richard Gooch <rgooch@atnf.csiro.au>
>
> David S. Miller writes:
> > Are you considering the size of IP and UDP headers? Those must be
> > factored in.
>
> I was under the impression that the payload capacity was 65535
> bytes. And if it were true that the headers steal capacity, then why
> can Solaris 2.5.1 send a full 65535 byte packet?
>
>Sounds like you found a bug in Solaris, not in Linux...

If the limit of 65507 Richard quoted is right then there is a off-by-one
bug somewhere - the limit should be 65508 for UDP (65536 - 20 bytes ip header
- 8 bytes UDP header) and 65516 for RAW sockets (and 65536 when IP_HDRINCL
is set). If the input limit is smaller this is a bug too.

-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/