tcpdump mailing list archives

Re: updates needed to print-udp.c.. (was Re: RFC 9868 on Transport Options for UDP)


From: Francois via tcpdump-workers <tcpdump-workers () lists tcpdump org>
Date: Thu, 9 Oct 2025 09:26:46 +0200

--- Begin Message --- From: Francois <devel.fx.lebail () orange fr>
Date: Thu, 9 Oct 2025 09:26:46 +0200
On 08/10/2025 19:51, Guy Harris wrote:
On Oct 8, 2025, at 10:33 AM, Francois via tcpdump-workers <tcpdump-workers () lists tcpdump org> wrote:

On 08/10/2025 18:53, Guy Harris wrote:

OK, so does this finally make the Length field in the UDP header serve a useful purpose, or was there a purpose for 
it *before* this that I didn't know about?

One example on network stacks: Linux, net/ipv4/udp.c and net/ipv6/udp.c: length checks.

But if the UDP header hadn't had a length field in the first place, and the UDP payload always ran to the end of the 
(possibly-reassembled) IP datagram, there wouldn't be a length field to check.

That's right.

--- End Message ---
_______________________________________________
tcpdump-workers mailing list -- tcpdump-workers () lists tcpdump org
To unsubscribe send an email to tcpdump-workers-leave () lists tcpdump org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Current thread: