Export a pointer to the SCTP socket. This is needed to add SCTP support
to sockstat. MFC after: 3 days
This commit is contained in:
parent
5148474e8b
commit
0694a1bc74
@ -418,6 +418,7 @@ sctp_sysctl_handle_assoclist(SYSCTL_HANDLER_ARGS)
|
||||
xinpcb.total_recvs = inp->total_recvs;
|
||||
xinpcb.total_nospaces = inp->total_nospaces;
|
||||
xinpcb.fragmentation_point = inp->sctp_frag_point;
|
||||
xinpcb.socket = inp->sctp_socket;
|
||||
so = inp->sctp_socket;
|
||||
if ((so == NULL) ||
|
||||
(inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_GONE)) {
|
||||
|
@ -1165,7 +1165,12 @@ struct xsctp_inpcb {
|
||||
uint16_t local_port;
|
||||
uint16_t qlen;
|
||||
uint16_t maxqlen;
|
||||
uint32_t extra_padding[31]; /* future */
|
||||
void *socket;
|
||||
#if defined(__LP64__)
|
||||
uint32_t extra_padding[29]; /* future */
|
||||
#else
|
||||
uint32_t extra_padding[30]; /* future */
|
||||
#endif
|
||||
};
|
||||
|
||||
struct xsctp_tcb {
|
||||
|
Loading…
Reference in New Issue
Block a user