Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jul 2026 09:14:03 +0000
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: f2f50c80ae27 - main - sockstat: fix SCTP support
Message-ID:  <6a54ac5b.38c77.373c02a0@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by tuexen:

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

commit f2f50c80ae27a97a66b8d4a1b5dd6ee9d63ff18f
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2026-07-13 09:08:01 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2026-07-13 09:13:04 +0000

    sockstat: fix SCTP support
    
    Provide a name for SCTP sockets.
    
    Fixes:          8b2b62b49d88 ("sockstat: consolidate unix(4) protocols in the array of protocols")
---
 usr.bin/sockstat/main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/usr.bin/sockstat/main.c b/usr.bin/sockstat/main.c
index 0edf8dcbd431..7acfdc08b0a6 100644
--- a/usr.bin/sockstat/main.c
+++ b/usr.bin/sockstat/main.c
@@ -398,6 +398,7 @@ gather_sctp(struct proto *proto)
 			xo_err(1, "malloc()");
 		sock->socket = xinpcb->socket;
 		sock->proto = proto;
+		sock->protoname = proto->name;
 		if (xinpcb->maxqlen == 0)
 			sock->state = SCTP_CLOSED;
 		else
@@ -498,6 +499,7 @@ gather_sctp(struct proto *proto)
 					xo_err(1, "malloc()");
 				sock->socket = xinpcb->socket;
 				sock->proto = proto;
+				sock->protoname = proto->name;
 				sock->state = (int)xstcb->state;
 				if (xinpcb->flags & SCTP_PCB_FLAGS_BOUND_V6) {
 					sock->family = AF_INET6;


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a54ac5b.38c77.373c02a0>