SCTP_BUF_NEXT
SCTP_BUF_NEXT(m_asconf_chk) = m_asconf;
SCTP_BUF_NEXT(m_tail) = m_result;
for (n = m_ack; n != NULL; n = SCTP_BUF_NEXT(n)) {
m_tmp = SCTP_BUF_NEXT(m_tmp);
if ((SCTP_BUF_NEXT(m_tmp) == NULL) && trailer) {
m_tmp = SCTP_BUF_NEXT(m_tmp);
m_tmp = SCTP_BUF_NEXT(m_tmp);
m_tmp = SCTP_BUF_NEXT(m_tmp);
SCTP_BUF_NEXT(m_notify) = NULL;
KASSERT(SCTP_BUF_NEXT(m) == NULL, ("%s: no chain allowed", __func__));
if (SCTP_BUF_NEXT(dmbuf) == NULL) {
for (lat = dmbuf; lat; lat = SCTP_BUF_NEXT(lat)) {
if (SCTP_BUF_NEXT(mm) == NULL) {
if (SCTP_BUF_LEN(m) < (long)MLEN && SCTP_BUF_NEXT(m) == NULL) {
SCTP_BUF_NEXT(op_err) = SCTP_M_COPYM(m, *offset, chk_length, M_NOWAIT);
if (SCTP_BUF_NEXT(op_err) != NULL) {
SCTP_BUF_NEXT(prev) = sctp_m_free(m);
m = SCTP_BUF_NEXT(prev);
m = SCTP_BUF_NEXT(m);
SCTP_BUF_NEXT(prev) = sctp_m_free(m);
m = SCTP_BUF_NEXT(prev);
m = SCTP_BUF_NEXT(m);
while (SCTP_BUF_NEXT(m_at) != NULL) {
m_at = SCTP_BUF_NEXT(m_at);
SCTP_BUF_NEXT(m_at) = m_sig;
SCTP_BUF_NEXT(op_err) = SCTP_M_COPYM(m, *offset, len, M_NOWAIT);
if (SCTP_BUF_NEXT(op_err) != NULL) {
sctp_log_mbc(SCTP_BUF_NEXT(op_err), SCTP_MBUF_ICOPY);
SCTP_BUF_NEXT(m_abort) = operr;
for (m = operr; m; m = SCTP_BUF_NEXT(m)) {
if (SCTP_BUF_NEXT(m) == NULL) {
SCTP_BUF_NEXT(m_end) = m_abort;
for (m_at = cause; m_at; m_at = SCTP_BUF_NEXT(m_at)) {
if (SCTP_BUF_NEXT(m_at) == NULL)
SCTP_BUF_NEXT(mout) = cause;
for (cntm = top; cntm; cntm = SCTP_BUF_NEXT(cntm)) {
SCTP_BUF_NEXT(mm) = top;
SCTP_BUF_NEXT(sp->tail_mbuf) = mm;
for (cn = m; cn; cn = SCTP_BUF_NEXT(cn)) {
while (SCTP_BUF_NEXT(mret) != NULL) {
mret = SCTP_BUF_NEXT(mret);
SCTP_BUF_NEXT(mret) = sctp_get_mbuf_for_msg(plen, 0, M_NOWAIT, 1, MT_DATA);
if (SCTP_BUF_NEXT(mret) == NULL) {
mret = SCTP_BUF_NEXT(mret);
for (m_at = mret; m_at; m_at = SCTP_BUF_NEXT(m_at)) {
if (SCTP_BUF_NEXT(m_at) == NULL) {
SCTP_BUF_NEXT(m_at) = copy_init;
for (m_at = copy_init; m_at; m_at = SCTP_BUF_NEXT(m_at)) {
if (SCTP_BUF_NEXT(m_at) == NULL) {
SCTP_BUF_NEXT(m_at) = copy_initack;
for (m_at = copy_initack; m_at; m_at = SCTP_BUF_NEXT(m_at)) {
if (SCTP_BUF_NEXT(m_at) == NULL) {
SCTP_BUF_NEXT(m_at) = sig;
SCTP_BUF_NEXT(newm) = m;
SCTP_BUF_NEXT(newm) = m;
SCTP_BUF_NEXT(op_err) = SCTP_M_COPYM(mat, at, plen, M_NOWAIT);
if (SCTP_BUF_NEXT(op_err) == NULL) {
SCTP_BUF_NEXT(m_tmp) = NULL;
SCTP_BUF_NEXT(op_err_last) = m_tmp;
SCTP_BUF_NEXT(op_err_last) = SCTP_M_COPYM(mat, at, plen, M_NOWAIT);
if (SCTP_BUF_NEXT(op_err_last) == NULL) {
while (SCTP_BUF_NEXT(op_err_last) != NULL) {
op_err_last = SCTP_BUF_NEXT(op_err_last);
for (m_tmp = op_err; m_tmp != NULL; m_tmp = SCTP_BUF_NEXT(m_tmp)) {
SCTP_BUF_NEXT(m_last) = op_err;
while (SCTP_BUF_NEXT(m_last) != NULL) {
m_last = SCTP_BUF_NEXT(m_last);
SCTP_BUF_NEXT(m_last) = m_cookie;
for (m_tmp = m_cookie; m_tmp != NULL; m_tmp = SCTP_BUF_NEXT(m_tmp)) {
if (SCTP_BUF_NEXT(m_tmp) == NULL) {
for (at = m; at; at = SCTP_BUF_NEXT(at)) {
if (SCTP_BUF_NEXT(at) == NULL)
if (SCTP_BUF_NEXT(m) == NULL) {
m = SCTP_BUF_NEXT(m);
SCTP_BUF_NEXT((*endofchain)) = m;
SCTP_BUF_NEXT(((*endofchain))) = appendchain;
if (SCTP_BUF_NEXT(m) == NULL) {
SCTP_BUF_NEXT(m) = appendchain;
m = SCTP_BUF_NEXT(m);
if (SCTP_BUF_NEXT(m) == NULL) {
m = SCTP_BUF_NEXT(m);
if (SCTP_BUF_NEXT(m) == NULL) {
m = SCTP_BUF_NEXT(m);
SCTP_BUF_NEXT_PKT(at) = SCTP_BUF_NEXT(at) = 0;
SCTP_BUF_NEXT(at) = sctp_get_mbuf_for_msg((unsigned int)left, 0, M_WAITOK, 1, MT_DATA);
if (SCTP_BUF_NEXT(at) == NULL) {
at = SCTP_BUF_NEXT(at);
for (mat = m; mat; mat = SCTP_BUF_NEXT(mat)) {
sp->data = SCTP_BUF_NEXT(m);
SCTP_BUF_NEXT(m) = NULL;
while (SCTP_BUF_NEXT(chk->last_mbuf) != NULL) {
chk->last_mbuf = SCTP_BUF_NEXT(chk->last_mbuf);
SCTP_BUF_NEXT(chk->last_mbuf) = m_tmp;
SCTP_BUF_NEXT(m) = chk->data;
for (mat = op_err; mat != NULL; mat = SCTP_BUF_NEXT(mat)) {
if (SCTP_BUF_NEXT(mat) == NULL) {
SCTP_BUF_NEXT(inp->pkt_last) = m;
for (m = control->data; m; m = SCTP_BUF_NEXT(m)) {
(data) = SCTP_BUF_NEXT(_m); \
SCTP_BUF_NEXT(_m) = NULL; \
for (mat = m; mat; mat = SCTP_BUF_NEXT(mat)) {
for (at = m; at != NULL; at = SCTP_BUF_NEXT(at)) {
m = SCTP_BUF_NEXT(m);
m = SCTP_BUF_NEXT(m);
SCTP_BUF_NEXT(m_last) = NULL;
SCTP_BUF_NEXT(m) = m_last;
for (m_at = m; m_at; m_at = SCTP_BUF_NEXT(m_at)) {
if (SCTP_BUF_NEXT(m_at) == NULL) {
SCTP_BUF_NEXT(m_notify) = NULL;
SCTP_BUF_NEXT(m_notify) = NULL;
SCTP_BUF_NEXT(m_notify) = chk->data;
SCTP_BUF_NEXT(m_notify) = sp->data;
SCTP_BUF_NEXT(m_notify) = NULL;
SCTP_BUF_NEXT(m_notify) = NULL;
SCTP_BUF_NEXT(m_notify) = NULL;
SCTP_BUF_NEXT(m_notify) = NULL;
SCTP_BUF_NEXT(m_notify) = NULL;
SCTP_BUF_NEXT(m_notify) = NULL;
SCTP_BUF_NEXT(m_notify) = NULL;
SCTP_BUF_NEXT(m_notify) = NULL;
m = SCTP_BUF_NEXT(m);
m = SCTP_BUF_NEXT(m);
SCTP_BUF_NEXT(prev) = sctp_m_free(m);
m = SCTP_BUF_NEXT(prev);
m = SCTP_BUF_NEXT(m);
if (SCTP_BUF_NEXT(m_tmp) == NULL) {
m_tmp = SCTP_BUF_NEXT(m_tmp);
if ((SCTP_BUF_NEXT(m) == NULL) &&
m = SCTP_BUF_NEXT(m);
m = SCTP_BUF_NEXT(m);
SCTP_BUF_NEXT(inp->pkt_last) = m;