sctp_diag: Respect ss adding TCPF_CLOSE to idiag_states
authorPhil Sutter <phil@nwl.cc>
Thu, 4 Aug 2016 10:11:57 +0000 (12:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Aug 2016 19:51:58 +0000 (12:51 -0700)
commit1ba8d77f410d3b7423df39e8a10a02af272d3c42
tree60a69fb3cb3cf7838b4c09df657975d1c7182221
parent12474e8e58d82e2b815cd35956c0c06fab104ee7
sctp_diag: Respect ss adding TCPF_CLOSE to idiag_states

Since 'ss' always adds TCPF_CLOSE to idiag_states flags, sctp_diag can't
rely upon TCPF_LISTEN flag solely being present when listening sockets
are requested.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/sctp_diag.c