Page MenuHomeFreeBSD

netstat: report undelivered multi and broadcast UDP packets correctly
ClosedPublic

Authored by tuexen on Aug 12 2025, 6:05 PM.
Tags
None
Referenced Files
F157979058: D51881.id.diff
Wed, May 27, 2:46 AM
F157942859: D51881.diff
Tue, May 26, 5:56 PM
Unknown Object (File)
Sun, May 24, 7:40 AM
Unknown Object (File)
Mon, May 18, 7:25 AM
Unknown Object (File)
Sat, May 16, 1:49 AM
Unknown Object (File)
Sat, May 16, 1:49 AM
Unknown Object (File)
Sat, May 16, 1:49 AM
Unknown Object (File)
Fri, May 15, 1:26 PM
Subscribers

Details

Summary

When reporting undelivered broadcast/multicast datagrams, don't just report the undelivered broadcast ones. Actually report the sum of both.
Alternatively, one could also report broadcast and multicast datagrams searately, but that would change the output format of netstat.
While there, use the correct type for casting a variable printed with %ju.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable