Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Sep 2025 20:22:41 GMT
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: c0e3a2d77bfe - stable/14 - netstat: fix reporting of delivered UDP packets
Message-ID:  <202509032022.583KMfSb068182@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by tuexen:

URL: https://cgit.FreeBSD.org/src/commit/?id=c0e3a2d77bfe2cd1992a10c760cae273924e8300

commit c0e3a2d77bfe2cd1992a10c760cae273924e8300
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2025-08-12 17:40:58 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2025-09-03 09:59:04 +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
    Sponsored by:           Netflix, Inc.
    Differential Revision:  https://reviews.freebsd.org/D51870
    
    (cherry picked from commit d3f2d49e01a867e19186a1db095a7dd66e6c77c0)
---
 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 86354d680131..f154c4849dfe 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -950,7 +950,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",



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202509032022.583KMfSb068182>