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

Function sctp_log_mb

freebsd/netinet/sctputil.c:245–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243
244#ifdef SCTP_MBUF_LOGGING
245void
246sctp_log_mb(struct mbuf *m, int from)
247{
248#if defined(SCTP_LOCAL_TRACE_BUF)
249 struct sctp_cwnd_log sctp_clog;
250
251 sctp_clog.x.mb.mp = m;
252 sctp_clog.x.mb.mbuf_flags = (uint8_t)(SCTP_BUF_GET_FLAGS(m));
253 sctp_clog.x.mb.size = (uint16_t)(SCTP_BUF_LEN(m));
254 sctp_clog.x.mb.data = SCTP_BUF_AT(m, 0);
255 if (SCTP_BUF_IS_EXTENDED(m)) {
256 sctp_clog.x.mb.ext = SCTP_BUF_EXTEND_BASE(m);
257 sctp_clog.x.mb.refcnt = (uint8_t)(SCTP_BUF_EXTEND_REFCNT(m));
258 } else {
259 sctp_clog.x.mb.ext = 0;
260 sctp_clog.x.mb.refcnt = 0;
261 }
262 SCTP_CTR6(KTR_SCTP, "SCTP:%d[%d]:%x-%x-%x-%x",
263 SCTP_LOG_EVENT_MBUF,
264 from,
265 sctp_clog.x.misc.log1,
266 sctp_clog.x.misc.log2,
267 sctp_clog.x.misc.log3,
268 sctp_clog.x.misc.log4);
269#endif
270}
271
272void
273sctp_log_mbc(struct mbuf *m, int from)

Callers 3

sctp_get_mbuf_for_msgFunction · 0.85
sctp_log_mbcFunction · 0.85
sctp_m_freeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected