git: d3f2d49e01a8 - main - netstat: fix reporting of delivered UDP packets
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 12 Aug 2025 17:43:51 UTC
The branch main has been updated by tuexen:
URL: https://cgit.FreeBSD.org/src/commit/?id=d3f2d49e01a867e19186a1db095a7dd66e6c77c0
commit d3f2d49e01a867e19186a1db095a7dd66e6c77c0
Author: Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2025-08-12 17:40:58 +0000
Commit: Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2025-08-12 17:40:58 +0000
netstat: fix reporting of delivered UDP packets
The counter udps_noport includes udps_noportbcast, so don't subtract
udps_noportbcast twice.
PR: 288680
Reviewed by: rrs
MFC after: 1 week
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D51870
---
usr.bin/netstat/inet.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c
index 139ff9294fde..6724c1099a83 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -948,7 +948,6 @@ udp_stats(u_long off, const char *name, int af1 __unused, int proto __unused)
udpstat.udps_badlen -
udpstat.udps_badsum -
udpstat.udps_noport -
- udpstat.udps_noportbcast -
udpstat.udps_fullsock;
if (delivered || sflag <= 1)
xo_emit("\t{:delivered-packets/%ju} {N:/delivered}\n",