| 3127 | } |
| 3128 | |
| 3129 | struct mbuf * |
| 3130 | sctp_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 | |
| 3147 | static void |
| 3148 | sctp_notify_assoc_change(uint16_t state, struct sctp_tcb *stcb, |
no test coverage detected