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
Unknown Object (File)
Sat, Oct 11, 2:09 PM
Unknown Object (File)
Sat, Oct 11, 2:08 PM
Unknown Object (File)
Sat, Oct 11, 2:08 PM
Unknown Object (File)
Sat, Oct 11, 5:50 AM
Unknown Object (File)
Tue, Oct 7, 10:53 AM
Unknown Object (File)
Thu, Oct 2, 9:19 AM
Unknown Object (File)
Wed, Oct 1, 5:27 AM
Unknown Object (File)
Wed, Oct 1, 2:14 AM
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