svn commit: r294232 - stable/10/usr.bin/sockstat
Michael Tuexen
tuexen at FreeBSD.org
Sun Jan 17 18:39:02 UTC 2016
Author: tuexen
Date: Sun Jan 17 18:39:01 2016
New Revision: 294232
URL: https://svnweb.freebsd.org/changeset/base/294232
Log:
MFC r287281:
Report CLOSED as state for bound sockets for consistency with
netstat and the way TCP is handled.
Modified:
stable/10/usr.bin/sockstat/sockstat.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/usr.bin/sockstat/sockstat.c
==============================================================================
--- stable/10/usr.bin/sockstat/sockstat.c Sun Jan 17 18:37:36 2016 (r294231)
+++ stable/10/usr.bin/sockstat/sockstat.c Sun Jan 17 18:39:01 2016 (r294232)
@@ -332,10 +332,8 @@ gather_sctp(void)
sock->socket = xinpcb->socket;
sock->proto = IPPROTO_SCTP;
sock->protoname = "sctp";
- if (xinpcb->flags & SCTP_PCB_FLAGS_UNBOUND)
+ if (xinpcb->maxqlen == 0)
sock->state = SCTP_CLOSED;
- else if (xinpcb->maxqlen == 0)
- sock->state = SCTP_BOUND;
else
sock->state = SCTP_LISTEN;
if (xinpcb->flags & SCTP_PCB_FLAGS_BOUND_V6) {
More information about the svn-src-stable-10
mailing list