Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/sctp_sysctl.c
Show First 20 Lines • Show All 403 Lines • ▼ Show 20 Lines | LIST_FOREACH(inp, &SCTP_BASE_INFO(listhead), sctp_list) { | ||||
xinpcb.last = 0; | xinpcb.last = 0; | ||||
xinpcb.local_port = ntohs(inp->sctp_lport); | xinpcb.local_port = ntohs(inp->sctp_lport); | ||||
xinpcb.flags = inp->sctp_flags; | xinpcb.flags = inp->sctp_flags; | ||||
xinpcb.features = inp->sctp_features; | xinpcb.features = inp->sctp_features; | ||||
xinpcb.total_sends = inp->total_sends; | xinpcb.total_sends = inp->total_sends; | ||||
xinpcb.total_recvs = inp->total_recvs; | xinpcb.total_recvs = inp->total_recvs; | ||||
xinpcb.total_nospaces = inp->total_nospaces; | xinpcb.total_nospaces = inp->total_nospaces; | ||||
xinpcb.fragmentation_point = inp->sctp_frag_point; | xinpcb.fragmentation_point = inp->sctp_frag_point; | ||||
xinpcb.socket = inp->sctp_socket; | xinpcb.socket = (kvaddr_t)inp->sctp_socket; | ||||
so = inp->sctp_socket; | so = inp->sctp_socket; | ||||
if ((so == NULL) || | if ((so == NULL) || | ||||
(!SCTP_IS_LISTENING(inp)) || | (!SCTP_IS_LISTENING(inp)) || | ||||
(inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE)) { | (inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE)) { | ||||
xinpcb.qlen = 0; | xinpcb.qlen = 0; | ||||
xinpcb.maxqlen = 0; | xinpcb.maxqlen = 0; | ||||
} else { | } else { | ||||
xinpcb.qlen = so->sol_qlen; | xinpcb.qlen = so->sol_qlen; | ||||
▲ Show 20 Lines • Show All 533 Lines • Show Last 20 Lines |