From owner-freebsd-net Wed Mar 14 9: 3:15 2001 Delivered-To: freebsd-net@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id 2C5C837B718 for ; Wed, 14 Mar 2001 09:03:11 -0800 (PST) (envelope-from dwmalone@maths.tcd.ie) Received: from salmon.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 14 Mar 2001 17:03:10 +0000 (GMT) To: freebsd-net@freebsd.org Subject: UDP datagram max size. X-Request-Do: Date: Wed, 14 Mar 2001 17:03:10 +0000 From: David Malone Message-ID: <200103141703.aa78458@salmon.maths.tcd.ie> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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