Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Mar 2001 17:03:10 +0000
From:      David Malone <dwmalone@maths.tcd.ie>
To:        freebsd-net@freebsd.org
Subject:   UDP datagram max size.
Message-ID:   <200103141703.aa78458@salmon.maths.tcd.ie>

next in thread | raw e-mail | index | archive | help
I'm trying to figure out what #define I should use for the largest
UDP datagram. The header files don't seem to define a constant for
this. The correct size would seem to be 65535 'cos there are two
bytes in the UDP header for the size.

IP_MAXPACKET and IPV6_MAXPACKET are available and have the right
values, but these don't really seem to be the correct thing to use
'cos they don't take headers or the possibility Jumbo payload into
account.

I wanted to commit something for:

	http://www.FreeBSD.org/cgi/query-pr.cgi?pr=25050

but I'm not convinced that the patch is spot on. I could determine
the data size and malloc memory dynamically I guess.

	David

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi? <200103141703.aa78458>