]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use the SCTP_PCB_FLAGS_ACCEPTING flags to check for listeners.
authorMichael Tuexen <tuexen@FreeBSD.org>
Fri, 26 May 2017 16:29:00 +0000 (16:29 +0000)
committerMichael Tuexen <tuexen@FreeBSD.org>
Fri, 26 May 2017 16:29:00 +0000 (16:29 +0000)
commit5d08768a2b4ca4e283e6ee487d619584ca3bae1d
tree34ec23b95941063a85a470680ff03f9a6e6a4572
parent55b87d4621eae561859b7bddd080bb86ba6e71f8
Use the SCTP_PCB_FLAGS_ACCEPTING flags to check for listeners.

While there, use a macro for checking the listen state to allow for
easier changes if required.

This done to help glebius@ with his listen changes.
sys/netinet/sctp_input.c
sys/netinet/sctp_os_bsd.h
sys/netinet/sctp_output.c
sys/netinet/sctp_pcb.c
sys/netinet/sctp_sysctl.c
sys/netinet/sctp_usrreq.c