MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sctp_log_closing

Function sctp_log_closing

freebsd/netinet/sctputil.c:95–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void
96sctp_log_closing(struct sctp_inpcb *inp, struct sctp_tcb *stcb, int16_t loc)
97{
98#if defined(SCTP_LOCAL_TRACE_BUF)
99 struct sctp_cwnd_log sctp_clog;
100
101 sctp_clog.x.close.inp = (void *)inp;
102 sctp_clog.x.close.sctp_flags = inp->sctp_flags;
103 if (stcb) {
104 sctp_clog.x.close.stcb = (void *)stcb;
105 sctp_clog.x.close.state = (uint16_t)stcb->asoc.state;
106 } else {
107 sctp_clog.x.close.stcb = 0;
108 sctp_clog.x.close.state = 0;
109 }
110 sctp_clog.x.close.loc = loc;
111 SCTP_CTR6(KTR_SCTP, "SCTP:%d[%d]:%x-%x-%x-%x",
112 SCTP_LOG_EVENT_CLOSE,
113 0,
114 sctp_clog.x.misc.log1,
115 sctp_clog.x.misc.log2,
116 sctp_clog.x.misc.log3,
117 sctp_clog.x.misc.log4);
118#endif
119}
120
121void
122rto_logging(struct sctp_nets *net, int from)

Callers 6

sctp_abortFunction · 0.70
sctp_closeFunction · 0.70
sctp_inpcb_allocFunction · 0.70
sctp_inpcb_freeFunction · 0.70
sctp_free_assocFunction · 0.70
sctp6_abortFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected