| 243 | |
| 244 | #ifdef SCTP_MBUF_LOGGING |
| 245 | void |
| 246 | sctp_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 | |
| 272 | void |
| 273 | sctp_log_mbc(struct mbuf *m, int from) |
no outgoing calls
no test coverage detected