mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-30 21:43:34 +00:00
MFC r287281:
Report CLOSED as state for bound sockets for consistency with netstat and the way TCP is handled.
This commit is contained in:
parent
8727020273
commit
0af7a1f9e1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=294232
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user