Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Oct 2025 01:59:10 GMT
From:      Colin Percival <cperciva@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 978615d7bf7c - releng/15.0 - sockstat: add support for UDP-Lite endpoints
Message-ID:  <202510280159.59S1xAN3071738@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch releng/15.0 has been updated by cperciva:

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

commit 978615d7bf7cffdd1fc1fea268adbf008a2be747
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2025-10-23 07:12:32 +0000
Commit:     Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2025-10-28 01:58:20 +0000

    sockstat: add support for UDP-Lite endpoints
    
    With this patch UDP-Lite endpoints are also show per default.
    
    Approved by:    re (cperciva)
    Reviewed by:            Peter Lei, Nick Banks
    Relnotes:               yes
    Differential Revision:  https://reviews.freebsd.org/D53230
    
    (cherry picked from commit f48c6390dd5a01ab2b33f26ee50f4e8cbe8ae737)
    (cherry picked from commit c10317b0c455be506ae62b391e5491e1b75914aa)
---
 usr.bin/sockstat/main.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/usr.bin/sockstat/main.c b/usr.bin/sockstat/main.c
index abb73acafc2f..07663e54534d 100644
--- a/usr.bin/sockstat/main.c
+++ b/usr.bin/sockstat/main.c
@@ -108,7 +108,8 @@ static bool	 show_path_state = false;
 /*
  * Default protocols to use if no -P was defined.
  */
-static const char *default_protos[] = {"sctp", "tcp", "udp", "divert" };
+static const char *default_protos[] = {"sctp", "tcp", "udp", "udplite",
+    "divert" };
 static size_t	   default_numprotos = nitems(default_protos);
 
 static int	*protos;	/* protocols to use */
@@ -626,6 +627,10 @@ gather_inet(int proto)
 		varname = "net.inet.udp.pcblist";
 		protoname = "udp";
 		break;
+	case IPPROTO_UDPLITE:
+		varname = "net.inet.udplite.pcblist";
+		protoname = "udplite";
+		break;
 	case IPPROTO_DIVERT:
 		varname = "net.inet.divert.pcblist";
 		protoname = "div";
@@ -674,6 +679,7 @@ gather_inet(int proto)
 			protoname = xtp->t_flags & TF_TOE ? "toe" : "tcp";
 			break;
 		case IPPROTO_UDP:
+		case IPPROTO_UDPLITE:
 		case IPPROTO_DIVERT:
 			xip = (struct xinpcb *)xig;
 			if (!check_ksize(xip->xi_len, struct xinpcb))


home | help

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