Lines Matching refs:retval
216 struct sctp_chunk *retval = NULL; in sctp_make_init() local
319 retval = sctp_make_control(asoc, SCTP_CID_INIT, 0, chunksize, gfp); in sctp_make_init()
320 if (!retval) in sctp_make_init()
323 retval->subh.init_hdr = in sctp_make_init()
324 sctp_addto_chunk(retval, sizeof(init), &init); in sctp_make_init()
325 retval->param_hdr.v = in sctp_make_init()
326 sctp_addto_chunk(retval, addrs_len, addrs.v); in sctp_make_init()
337 sctp_addto_chunk(retval, sizeof(sat), &sat); in sctp_make_init()
338 sctp_addto_chunk(retval, num_types * sizeof(__u16), &types); in sctp_make_init()
341 sctp_addto_chunk(retval, sizeof(ecap_param), &ecap_param); in sctp_make_init()
349 sctp_addto_chunk(retval, sizeof(ext_param), &ext_param); in sctp_make_init()
350 sctp_addto_param(retval, num_ext, extensions); in sctp_make_init()
354 sctp_addto_chunk(retval, sizeof(prsctp_param), &prsctp_param); in sctp_make_init()
360 sctp_addto_chunk(retval, sizeof(aiparam), &aiparam); in sctp_make_init()
365 sctp_addto_chunk(retval, sizeof(asoc->c.auth_random), in sctp_make_init()
368 sctp_addto_chunk(retval, ntohs(auth_hmacs->length), in sctp_make_init()
371 sctp_addto_chunk(retval, ntohs(auth_chunks->length), in sctp_make_init()
376 return retval; in sctp_make_init()
388 struct sctp_chunk *retval = NULL; in sctp_make_init_ack() local
472 retval = sctp_make_control(asoc, SCTP_CID_INIT_ACK, 0, chunksize, gfp); in sctp_make_init_ack()
473 if (!retval) in sctp_make_init_ack()
486 retval->transport = in sctp_make_init_ack()
490 retval->subh.init_hdr = in sctp_make_init_ack()
491 sctp_addto_chunk(retval, sizeof(initack), &initack); in sctp_make_init_ack()
492 retval->param_hdr.v = sctp_addto_chunk(retval, addrs_len, addrs.v); in sctp_make_init_ack()
493 sctp_addto_chunk(retval, cookie_len, cookie); in sctp_make_init_ack()
495 sctp_addto_chunk(retval, sizeof(ecap_param), &ecap_param); in sctp_make_init_ack()
499 sctp_addto_chunk(retval, sizeof(ext_param), &ext_param); in sctp_make_init_ack()
500 sctp_addto_param(retval, num_ext, extensions); in sctp_make_init_ack()
503 sctp_addto_chunk(retval, sizeof(prsctp_param), &prsctp_param); in sctp_make_init_ack()
509 sctp_addto_chunk(retval, sizeof(aiparam), &aiparam); in sctp_make_init_ack()
513 sctp_addto_chunk(retval, ntohs(auth_random->length), in sctp_make_init_ack()
516 sctp_addto_chunk(retval, ntohs(auth_hmacs->length), in sctp_make_init_ack()
519 sctp_addto_chunk(retval, ntohs(auth_chunks->length), in sctp_make_init_ack()
524 retval->asoc = (struct sctp_association *) asoc; in sctp_make_init_ack()
530 return retval; in sctp_make_init_ack()
570 struct sctp_chunk *retval; in sctp_make_cookie_echo() local
578 retval = sctp_make_control(asoc, SCTP_CID_COOKIE_ECHO, 0, in sctp_make_cookie_echo()
580 if (!retval) in sctp_make_cookie_echo()
582 retval->subh.cookie_hdr = in sctp_make_cookie_echo()
583 sctp_addto_chunk(retval, cookie_len, cookie); in sctp_make_cookie_echo()
595 retval->transport = chunk->transport; in sctp_make_cookie_echo()
598 return retval; in sctp_make_cookie_echo()
622 struct sctp_chunk *retval; in sctp_make_cookie_ack() local
624 retval = sctp_make_control(asoc, SCTP_CID_COOKIE_ACK, 0, 0, GFP_ATOMIC); in sctp_make_cookie_ack()
635 if (retval && chunk && chunk->transport) in sctp_make_cookie_ack()
636 retval->transport = in sctp_make_cookie_ack()
640 return retval; in sctp_make_cookie_ack()
670 struct sctp_chunk *retval; in sctp_make_cwr() local
674 retval = sctp_make_control(asoc, SCTP_CID_ECN_CWR, 0, in sctp_make_cwr()
677 if (!retval) in sctp_make_cwr()
680 retval->subh.ecn_cwr_hdr = in sctp_make_cwr()
681 sctp_addto_chunk(retval, sizeof(cwr), &cwr); in sctp_make_cwr()
694 retval->transport = chunk->transport; in sctp_make_cwr()
697 return retval; in sctp_make_cwr()
704 struct sctp_chunk *retval; in sctp_make_ecne() local
708 retval = sctp_make_control(asoc, SCTP_CID_ECN_ECNE, 0, in sctp_make_ecne()
710 if (!retval) in sctp_make_ecne()
712 retval->subh.ecne_hdr = in sctp_make_ecne()
713 sctp_addto_chunk(retval, sizeof(ecne), &ecne); in sctp_make_ecne()
716 return retval; in sctp_make_ecne()
726 struct sctp_chunk *retval; in sctp_make_datafrag_empty() local
740 retval = sctp_make_data(asoc, flags, sizeof(dp) + len, gfp); in sctp_make_datafrag_empty()
741 if (!retval) in sctp_make_datafrag_empty()
744 retval->subh.data_hdr = sctp_addto_chunk(retval, sizeof(dp), &dp); in sctp_make_datafrag_empty()
745 memcpy(&retval->sinfo, sinfo, sizeof(struct sctp_sndrcvinfo)); in sctp_make_datafrag_empty()
747 return retval; in sctp_make_datafrag_empty()
760 struct sctp_chunk *retval; in sctp_make_sack() local
785 retval = sctp_make_control(asoc, SCTP_CID_SACK, 0, len, GFP_ATOMIC); in sctp_make_sack()
786 if (!retval) in sctp_make_sack()
819 retval->transport = asoc->peer.last_data_from; in sctp_make_sack()
821 retval->subh.sack_hdr = in sctp_make_sack()
822 sctp_addto_chunk(retval, sizeof(sack), &sack); in sctp_make_sack()
826 sctp_addto_chunk(retval, sizeof(__u32) * num_gabs, in sctp_make_sack()
832 sctp_addto_chunk(retval, sizeof(__u32) * num_dup_tsns, in sctp_make_sack()
850 return retval; in sctp_make_sack()
858 struct sctp_chunk *retval; in sctp_make_shutdown() local
868 retval = sctp_make_control(asoc, SCTP_CID_SHUTDOWN, 0, in sctp_make_shutdown()
870 if (!retval) in sctp_make_shutdown()
873 retval->subh.shutdown_hdr = in sctp_make_shutdown()
874 sctp_addto_chunk(retval, sizeof(shut), &shut); in sctp_make_shutdown()
877 retval->transport = chunk->transport; in sctp_make_shutdown()
879 return retval; in sctp_make_shutdown()
885 struct sctp_chunk *retval; in sctp_make_shutdown_ack() local
887 retval = sctp_make_control(asoc, SCTP_CID_SHUTDOWN_ACK, 0, 0, in sctp_make_shutdown_ack()
899 if (retval && chunk) in sctp_make_shutdown_ack()
900 retval->transport = chunk->transport; in sctp_make_shutdown_ack()
902 return retval; in sctp_make_shutdown_ack()
909 struct sctp_chunk *retval; in sctp_make_shutdown_complete() local
917 retval = sctp_make_control(asoc, SCTP_CID_SHUTDOWN_COMPLETE, flags, in sctp_make_shutdown_complete()
930 if (retval && chunk) in sctp_make_shutdown_complete()
931 retval->transport = chunk->transport; in sctp_make_shutdown_complete()
933 return retval; in sctp_make_shutdown_complete()
943 struct sctp_chunk *retval; in sctp_make_abort() local
957 retval = sctp_make_control(asoc, SCTP_CID_ABORT, flags, hint, in sctp_make_abort()
969 if (retval && chunk) in sctp_make_abort()
970 retval->transport = chunk->transport; in sctp_make_abort()
972 return retval; in sctp_make_abort()
981 struct sctp_chunk *retval; in sctp_make_abort_no_data() local
984 retval = sctp_make_abort(asoc, chunk, in sctp_make_abort_no_data()
987 if (!retval) in sctp_make_abort_no_data()
992 sctp_init_cause(retval, SCTP_ERROR_NO_DATA, sizeof(payload)); in sctp_make_abort_no_data()
993 sctp_addto_chunk(retval, sizeof(payload), (const void *)&payload); in sctp_make_abort_no_data()
1005 retval->transport = chunk->transport; in sctp_make_abort_no_data()
1008 return retval; in sctp_make_abort_no_data()
1016 struct sctp_chunk *retval; in sctp_make_abort_user() local
1020 retval = sctp_make_abort(asoc, NULL, in sctp_make_abort_user()
1022 if (!retval) in sctp_make_abort_user()
1036 sctp_init_cause(retval, SCTP_ERROR_USER_ABORT, paylen); in sctp_make_abort_user()
1037 sctp_addto_chunk(retval, paylen, payload); in sctp_make_abort_user()
1042 return retval; in sctp_make_abort_user()
1047 sctp_chunk_free(retval); in sctp_make_abort_user()
1048 retval = NULL; in sctp_make_abort_user()
1050 return retval; in sctp_make_abort_user()
1083 struct sctp_chunk *retval; in sctp_make_abort_violation() local
1086 retval = sctp_make_abort(asoc, chunk, sizeof(struct sctp_errhdr) + in sctp_make_abort_violation()
1088 if (!retval) in sctp_make_abort_violation()
1091 sctp_init_cause(retval, SCTP_ERROR_PROTO_VIOLATION, paylen + in sctp_make_abort_violation()
1096 sctp_addto_chunk(retval, paylen, payload); in sctp_make_abort_violation()
1097 sctp_addto_param(retval, sizeof(phdr), &phdr); in sctp_make_abort_violation()
1100 return retval; in sctp_make_abort_violation()
1111 struct sctp_chunk *retval; in sctp_make_violation_paramlen() local
1113 retval = sctp_make_abort(asoc, chunk, payload_len); in sctp_make_violation_paramlen()
1114 if (!retval) in sctp_make_violation_paramlen()
1117 sctp_init_cause(retval, SCTP_ERROR_PROTO_VIOLATION, in sctp_make_violation_paramlen()
1119 sctp_addto_chunk(retval, sizeof(error), error); in sctp_make_violation_paramlen()
1120 sctp_addto_param(retval, sizeof(*param), param); in sctp_make_violation_paramlen()
1123 return retval; in sctp_make_violation_paramlen()
1132 struct sctp_chunk *retval; in sctp_make_violation_max_retrans() local
1134 retval = sctp_make_abort(asoc, chunk, payload_len); in sctp_make_violation_max_retrans()
1135 if (!retval) in sctp_make_violation_max_retrans()
1138 sctp_init_cause(retval, SCTP_ERROR_PROTO_VIOLATION, sizeof(error)); in sctp_make_violation_max_retrans()
1139 sctp_addto_chunk(retval, sizeof(error), error); in sctp_make_violation_max_retrans()
1142 return retval; in sctp_make_violation_max_retrans()
1150 struct sctp_chunk *retval; in sctp_make_heartbeat() local
1152 retval = sctp_make_control(asoc, SCTP_CID_HEARTBEAT, 0, in sctp_make_heartbeat()
1155 if (!retval) in sctp_make_heartbeat()
1167 retval->transport = (struct sctp_transport *) transport; in sctp_make_heartbeat()
1168 retval->subh.hbs_hdr = sctp_addto_chunk(retval, sizeof(hbinfo), in sctp_make_heartbeat()
1172 return retval; in sctp_make_heartbeat()
1180 struct sctp_chunk *retval; in sctp_make_heartbeat_ack() local
1182 retval = sctp_make_control(asoc, SCTP_CID_HEARTBEAT_ACK, 0, paylen, in sctp_make_heartbeat_ack()
1184 if (!retval) in sctp_make_heartbeat_ack()
1187 retval->subh.hbs_hdr = sctp_addto_chunk(retval, paylen, payload); in sctp_make_heartbeat_ack()
1199 retval->transport = chunk->transport; in sctp_make_heartbeat_ack()
1202 return retval; in sctp_make_heartbeat_ack()
1213 struct sctp_chunk *retval; in sctp_make_op_error_space() local
1215 retval = sctp_make_control(asoc, SCTP_CID_ERROR, 0, in sctp_make_op_error_space()
1218 if (!retval) in sctp_make_op_error_space()
1230 retval->transport = chunk->transport; in sctp_make_op_error_space()
1233 return retval; in sctp_make_op_error_space()
1266 struct sctp_chunk *retval; in sctp_make_op_error() local
1268 retval = sctp_make_op_error_space(asoc, chunk, paylen + reserve_tail); in sctp_make_op_error()
1269 if (!retval) in sctp_make_op_error()
1272 sctp_init_cause(retval, cause_code, paylen + reserve_tail); in sctp_make_op_error()
1273 sctp_addto_chunk(retval, paylen, payload); in sctp_make_op_error()
1275 sctp_addto_param(retval, reserve_tail, NULL); in sctp_make_op_error()
1278 return retval; in sctp_make_op_error()
1286 struct sctp_chunk *retval; in sctp_make_auth() local
1293 retval = sctp_make_control(asoc, SCTP_CID_AUTH, 0, in sctp_make_auth()
1296 if (!retval) in sctp_make_auth()
1302 retval->subh.auth_hdr = sctp_addto_chunk(retval, sizeof(auth_hdr), in sctp_make_auth()
1305 skb_put_zero(retval->skb, hmac_desc->hmac_len); in sctp_make_auth()
1308 retval->chunk_hdr->length = in sctp_make_auth()
1309 htons(ntohs(retval->chunk_hdr->length) + hmac_desc->hmac_len); in sctp_make_auth()
1310 retval->chunk_end = skb_tail_pointer(retval->skb); in sctp_make_auth()
1312 return retval; in sctp_make_auth()
1334 struct sctp_chunk *retval; in sctp_chunkify() local
1336 retval = kmem_cache_zalloc(sctp_chunk_cachep, gfp); in sctp_chunkify()
1338 if (!retval) in sctp_chunkify()
1343 INIT_LIST_HEAD(&retval->list); in sctp_chunkify()
1344 retval->skb = skb; in sctp_chunkify()
1345 retval->asoc = (struct sctp_association *)asoc; in sctp_chunkify()
1346 retval->singleton = 1; in sctp_chunkify()
1348 retval->fast_retransmit = SCTP_CAN_FRTX; in sctp_chunkify()
1351 INIT_LIST_HEAD(&retval->transmitted_list); in sctp_chunkify()
1352 INIT_LIST_HEAD(&retval->frag_list); in sctp_chunkify()
1354 refcount_set(&retval->refcnt, 1); in sctp_chunkify()
1357 return retval; in sctp_chunkify()
1388 struct sctp_chunk *retval; in _sctp_make_chunk() local
1409 retval = sctp_chunkify(skb, asoc, sk, gfp); in _sctp_make_chunk()
1410 if (!retval) { in _sctp_make_chunk()
1415 retval->chunk_hdr = chunk_hdr; in _sctp_make_chunk()
1416 retval->chunk_end = ((__u8 *)chunk_hdr) + sizeof(*chunk_hdr); in _sctp_make_chunk()
1420 retval->auth = 1; in _sctp_make_chunk()
1422 return retval; in _sctp_make_chunk()
1616 struct sctp_cookie_param *retval; in sctp_pack_cookie() local
1639 retval = kzalloc(*cookie_len, GFP_ATOMIC); in sctp_pack_cookie()
1640 if (!retval) in sctp_pack_cookie()
1643 cookie = (struct sctp_signed_cookie *) retval->body; in sctp_pack_cookie()
1646 retval->p.type = SCTP_PARAM_STATE_COOKIE; in sctp_pack_cookie()
1647 retval->p.length = htons(*cookie_len); in sctp_pack_cookie()
1685 return retval; in sctp_pack_cookie()
1688 kfree(retval); in sctp_pack_cookie()
1701 struct sctp_association *retval = NULL; in sctp_unpack_cookie() local
1816 retval = sctp_association_new(ep, ep->base.sk, scope, gfp); in sctp_unpack_cookie()
1817 if (!retval) { in sctp_unpack_cookie()
1823 retval->peer.port = ntohs(chunk->sctp_hdr->source); in sctp_unpack_cookie()
1826 memcpy(&retval->c, bear_cookie, sizeof(*bear_cookie)); in sctp_unpack_cookie()
1828 if (sctp_assoc_set_bind_addr_from_cookie(retval, bear_cookie, in sctp_unpack_cookie()
1835 if (list_empty(&retval->base.bind_addr.address_list)) { in sctp_unpack_cookie()
1836 sctp_add_bind_addr(&retval->base.bind_addr, &chunk->dest, in sctp_unpack_cookie()
1841 retval->next_tsn = retval->c.initial_tsn; in sctp_unpack_cookie()
1842 retval->ctsn_ack_point = retval->next_tsn - 1; in sctp_unpack_cookie()
1843 retval->addip_serial = retval->c.initial_tsn; in sctp_unpack_cookie()
1844 retval->strreset_outseq = retval->c.initial_tsn; in sctp_unpack_cookie()
1845 retval->adv_peer_ack_point = retval->ctsn_ack_point; in sctp_unpack_cookie()
1846 retval->peer.prsctp_capable = retval->c.prsctp_capable; in sctp_unpack_cookie()
1847 retval->peer.adaptation_ind = retval->c.adaptation_ind; in sctp_unpack_cookie()
1850 return retval; in sctp_unpack_cookie()
1853 if (retval) in sctp_unpack_cookie()
1854 sctp_association_free(retval); in sctp_unpack_cookie()
2070 int retval = SCTP_IERROR_NO_ERROR; in sctp_process_unk_param() local
2074 retval = SCTP_IERROR_ERROR; in sctp_process_unk_param()
2079 retval = SCTP_IERROR_ERROR; in sctp_process_unk_param()
2093 retval = SCTP_IERROR_NOMEM; in sctp_process_unk_param()
2107 return retval; in sctp_process_unk_param()
2126 int retval = SCTP_IERROR_NO_ERROR; in sctp_verify_param() local
2160 retval = SCTP_IERROR_ABORT; in sctp_verify_param()
2181 retval = SCTP_IERROR_ABORT; in sctp_verify_param()
2197 retval = SCTP_IERROR_ABORT; in sctp_verify_param()
2223 retval = SCTP_IERROR_ABORT; in sctp_verify_param()
2231 retval = sctp_process_unk_param(asoc, param, chunk, err_chunk); in sctp_verify_param()
2234 return retval; in sctp_verify_param()
2497 int retval = 1, i; in sctp_process_param() local
2587 retval = 0; in sctp_process_param()
2658 retval = 0; in sctp_process_param()
2672 retval = 0; in sctp_process_param()
2688 retval = 0; in sctp_process_param()
2702 return retval; in sctp_process_param()
2723 __u32 retval; in sctp_generate_tsn() local
2725 get_random_bytes(&retval, sizeof(__u32)); in sctp_generate_tsn()
2726 return retval; in sctp_generate_tsn()
2756 struct sctp_chunk *retval; in sctp_make_asconf() local
2768 retval = sctp_make_control(asoc, SCTP_CID_ASCONF, 0, length, in sctp_make_asconf()
2770 if (!retval) in sctp_make_asconf()
2775 retval->subh.addip_hdr = in sctp_make_asconf()
2776 sctp_addto_chunk(retval, sizeof(asconf), &asconf); in sctp_make_asconf()
2777 retval->param_hdr.v = in sctp_make_asconf()
2778 sctp_addto_chunk(retval, addrlen, &addrparam); in sctp_make_asconf()
2780 return retval; in sctp_make_asconf()
2815 struct sctp_chunk *retval; in sctp_make_asconf_update_ip() local
2847 retval = sctp_make_asconf(asoc, laddr, totallen); in sctp_make_asconf_update_ip()
2848 if (!retval) in sctp_make_asconf_update_ip()
2861 sctp_addto_chunk(retval, paramlen, ¶m); in sctp_make_asconf_update_ip()
2862 sctp_addto_chunk(retval, addr_param_len, &addr_param); in sctp_make_asconf_update_ip()
2874 sctp_addto_chunk(retval, paramlen, ¶m); in sctp_make_asconf_update_ip()
2875 sctp_addto_chunk(retval, addr_param_len, &addr_param); in sctp_make_asconf_update_ip()
2877 return retval; in sctp_make_asconf_update_ip()
2900 struct sctp_chunk *retval; in sctp_make_asconf_set_prim() local
2910 retval = sctp_make_asconf(asoc, addr, len); in sctp_make_asconf_set_prim()
2911 if (!retval) in sctp_make_asconf_set_prim()
2918 sctp_addto_chunk(retval, sizeof(param), ¶m); in sctp_make_asconf_set_prim()
2919 sctp_addto_chunk(retval, addrlen, &addrparam); in sctp_make_asconf_set_prim()
2921 return retval; in sctp_make_asconf_set_prim()
2947 struct sctp_chunk *retval; in sctp_make_asconf_ack() local
2951 retval = sctp_make_control(asoc, SCTP_CID_ASCONF_ACK, 0, length, in sctp_make_asconf_ack()
2953 if (!retval) in sctp_make_asconf_ack()
2958 retval->subh.addip_hdr = in sctp_make_asconf_ack()
2959 sctp_addto_chunk(retval, sizeof(asconf), &asconf); in sctp_make_asconf_ack()
2961 return retval; in sctp_make_asconf_ack()
3428 int retval = 0; in sctp_process_asconf_ack() local
3470 retval = 1; in sctp_process_asconf_ack()
3506 return retval; in sctp_process_asconf_ack()
3514 struct sctp_chunk *retval = NULL; in sctp_make_fwdtsn() local
3522 retval = sctp_make_control(asoc, SCTP_CID_FWD_TSN, 0, hint, GFP_ATOMIC); in sctp_make_fwdtsn()
3524 if (!retval) in sctp_make_fwdtsn()
3528 retval->subh.fwdtsn_hdr = in sctp_make_fwdtsn()
3529 sctp_addto_chunk(retval, sizeof(ftsn_hdr), &ftsn_hdr); in sctp_make_fwdtsn()
3534 sctp_addto_chunk(retval, sizeof(skip), &skip); in sctp_make_fwdtsn()
3537 return retval; in sctp_make_fwdtsn()
3544 struct sctp_chunk *retval = NULL; in sctp_make_ifwdtsn() local
3550 retval = sctp_make_control(asoc, SCTP_CID_I_FWD_TSN, 0, hint, in sctp_make_ifwdtsn()
3552 if (!retval) in sctp_make_ifwdtsn()
3556 retval->subh.ifwdtsn_hdr = in sctp_make_ifwdtsn()
3557 sctp_addto_chunk(retval, sizeof(ftsn_hdr), &ftsn_hdr); in sctp_make_ifwdtsn()
3559 sctp_addto_chunk(retval, nstreams * sizeof(skiplist[0]), skiplist); in sctp_make_ifwdtsn()
3561 return retval; in sctp_make_ifwdtsn()
3583 struct sctp_chunk *retval; in sctp_make_reconf() local
3585 retval = sctp_make_control(asoc, SCTP_CID_RECONF, 0, length, in sctp_make_reconf()
3587 if (!retval) in sctp_make_reconf()
3590 reconf = (struct sctp_reconf_chunk *)retval->chunk_hdr; in sctp_make_reconf()
3591 retval->param_hdr.v = reconf->params; in sctp_make_reconf()
3593 return retval; in sctp_make_reconf()
3638 struct sctp_chunk *retval; in sctp_make_strreset_req() local
3644 retval = sctp_make_reconf(asoc, outlen + inlen); in sctp_make_strreset_req()
3645 if (!retval) in sctp_make_strreset_req()
3655 sctp_addto_chunk(retval, sizeof(outreq), &outreq); in sctp_make_strreset_req()
3658 sctp_addto_chunk(retval, stream_len, stream_list); in sctp_make_strreset_req()
3666 sctp_addto_chunk(retval, sizeof(inreq), &inreq); in sctp_make_strreset_req()
3669 sctp_addto_chunk(retval, stream_len, stream_list); in sctp_make_strreset_req()
3672 return retval; in sctp_make_strreset_req()
3689 struct sctp_chunk *retval; in sctp_make_strreset_tsnreq() local
3691 retval = sctp_make_reconf(asoc, length); in sctp_make_strreset_tsnreq()
3692 if (!retval) in sctp_make_strreset_tsnreq()
3699 sctp_addto_chunk(retval, sizeof(tsnreq), &tsnreq); in sctp_make_strreset_tsnreq()
3701 return retval; in sctp_make_strreset_tsnreq()
3721 struct sctp_chunk *retval; in sctp_make_strreset_addstrm() local
3723 retval = sctp_make_reconf(asoc, (!!out + !!in) * size); in sctp_make_strreset_addstrm()
3724 if (!retval) in sctp_make_strreset_addstrm()
3734 sctp_addto_chunk(retval, size, &addstrm); in sctp_make_strreset_addstrm()
3744 sctp_addto_chunk(retval, size, &addstrm); in sctp_make_strreset_addstrm()
3747 return retval; in sctp_make_strreset_addstrm()
3766 struct sctp_chunk *retval; in sctp_make_strreset_resp() local
3768 retval = sctp_make_reconf(asoc, length); in sctp_make_strreset_resp()
3769 if (!retval) in sctp_make_strreset_resp()
3777 sctp_addto_chunk(retval, sizeof(resp), &resp); in sctp_make_strreset_resp()
3779 return retval; in sctp_make_strreset_resp()
3804 struct sctp_chunk *retval; in sctp_make_strreset_tsnresp() local
3806 retval = sctp_make_reconf(asoc, length); in sctp_make_strreset_tsnresp()
3807 if (!retval) in sctp_make_strreset_tsnresp()
3818 sctp_addto_chunk(retval, sizeof(tsnresp), &tsnresp); in sctp_make_strreset_tsnresp()
3820 return retval; in sctp_make_strreset_tsnresp()