Re: UDP bugs

kuznet@ms2.inr.ac.ru
Mon, 14 Dec 1998 18:26:28 +0300 (MSK)


Hello!

> The reason I expect this is that an application dealing with a UDP
> socket shouldn't have to know the UDP, IP and MAC header sizes. What if
> you pass it a non-ethernet bound address, and IPV6 bound socket, some
> other datagram type, an IP with source route, etc.?

Look at RFCs. Sane application should not send frames longer 576 bytes,
if it is not sure that destination will accept this.
For IPv6 this limit is changed to 1500, not more. 8)
And it is full frame size... Take into account that
fragmentation is strongly discouraged too 8)8)

It sounds like joke, certainly.

But the statment that we are not obliged to accept weird
jumbo frames by default is the fact.

What's about maximal received frame size, I'd set default maximum
to 4K. Apps, which really expect larger packets, must increase it themselves.

Remeber, if host does not have gobs of unused memory 64K skb is serious
pain for our memory allocator, 128K is reliable death.

Alexey Kuznetsov

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