Report CLOSED as state for bound sockets for consistency with
netstat and the way TCP is handled. PR: 201585 MFC after: 3 weeks
This commit is contained in:
parent
253d699d3c
commit
c1eb13c74c
@ -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…
x
Reference in New Issue
Block a user