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

Function sctp_pad_lastmbuf

freebsd/netinet/sctputil.c:3129–3145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3127}
3128
3129struct mbuf *
3130sctp_pad_lastmbuf(struct mbuf *m, int padval, struct mbuf *last_mbuf)
3131{
3132 /* find the last mbuf in chain and pad it */
3133 struct mbuf *m_at;
3134
3135 if (last_mbuf != NULL) {
3136 return (sctp_add_pad_tombuf(last_mbuf, padval));
3137 } else {
3138 for (m_at = m; m_at; m_at = SCTP_BUF_NEXT(m_at)) {
3139 if (SCTP_BUF_NEXT(m_at) == NULL) {
3140 return (sctp_add_pad_tombuf(m_at, padval));
3141 }
3142 }
3143 }
3144 return (NULL);
3145}
3146
3147static void
3148sctp_notify_assoc_change(uint16_t state, struct sctp_tcb *stcb,

Callers 3

sctp_move_to_outqueueFunction · 0.85
sctp_send_cookie_echoFunction · 0.85
sctp_send_heartbeat_ackFunction · 0.85

Calls 1

sctp_add_pad_tombufFunction · 0.85

Tested by

no test coverage detected