Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Aug 2015 09:10:53 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r287281 - head/usr.bin/sockstat
Message-ID:  <201508290910.t7T9ArX4000727@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tuexen
Date: Sat Aug 29 09:10:52 2015
New Revision: 287281
URL: https://svnweb.freebsd.org/changeset/base/287281

Log:
  Report CLOSED as state for bound sockets for consistency with
  netstat and the way TCP is handled.
  
  PR:		201585
  MFC after:	3 weeks

Modified:
  head/usr.bin/sockstat/sockstat.c

Modified: head/usr.bin/sockstat/sockstat.c
==============================================================================
--- head/usr.bin/sockstat/sockstat.c	Sat Aug 29 08:16:57 2015	(r287280)
+++ head/usr.bin/sockstat/sockstat.c	Sat Aug 29 09:10:52 2015	(r287281)
@@ -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) {



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