tcpdump mailing list archives

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


From: Guy Harris <gharris () sonic net>
Date: Wed, 8 Oct 2025 10:51:30 -0700

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.
_______________________________________________
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: