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
864 retval = sctp_make_control(asoc, SCTP_CID_SHUTDOWN, 0, in sctp_make_shutdown()
866 if (!retval) in sctp_make_shutdown()
869 retval->subh.shutdown_hdr = in sctp_make_shutdown()
870 sctp_addto_chunk(retval, sizeof(shut), &shut); in sctp_make_shutdown()
873 retval->transport = chunk->transport; in sctp_make_shutdown()
875 return retval; in sctp_make_shutdown()
881 struct sctp_chunk *retval; in sctp_make_shutdown_ack() local
883 retval = sctp_make_control(asoc, SCTP_CID_SHUTDOWN_ACK, 0, 0, in sctp_make_shutdown_ack()
895 if (retval && chunk) in sctp_make_shutdown_ack()
896 retval->transport = chunk->transport; in sctp_make_shutdown_ack()
898 return retval; in sctp_make_shutdown_ack()
905 struct sctp_chunk *retval; in sctp_make_shutdown_complete() local
913 retval = sctp_make_control(asoc, SCTP_CID_SHUTDOWN_COMPLETE, flags, in sctp_make_shutdown_complete()
926 if (retval && chunk) in sctp_make_shutdown_complete()
927 retval->transport = chunk->transport; in sctp_make_shutdown_complete()
929 return retval; in sctp_make_shutdown_complete()
939 struct sctp_chunk *retval; in sctp_make_abort() local
953 retval = sctp_make_control(asoc, SCTP_CID_ABORT, flags, hint, in sctp_make_abort()
965 if (retval && chunk) in sctp_make_abort()
966 retval->transport = chunk->transport; in sctp_make_abort()
968 return retval; in sctp_make_abort()
977 struct sctp_chunk *retval; in sctp_make_abort_no_data() local
980 retval = sctp_make_abort(asoc, chunk, in sctp_make_abort_no_data()
983 if (!retval) in sctp_make_abort_no_data()
988 sctp_init_cause(retval, SCTP_ERROR_NO_DATA, sizeof(payload)); in sctp_make_abort_no_data()
989 sctp_addto_chunk(retval, sizeof(payload), (const void *)&payload); in sctp_make_abort_no_data()
1001 retval->transport = chunk->transport; in sctp_make_abort_no_data()
1004 return retval; in sctp_make_abort_no_data()
1012 struct sctp_chunk *retval; in sctp_make_abort_user() local
1016 retval = sctp_make_abort(asoc, NULL, in sctp_make_abort_user()
1018 if (!retval) in sctp_make_abort_user()
1032 sctp_init_cause(retval, SCTP_ERROR_USER_ABORT, paylen); in sctp_make_abort_user()
1033 sctp_addto_chunk(retval, paylen, payload); in sctp_make_abort_user()
1038 return retval; in sctp_make_abort_user()
1043 sctp_chunk_free(retval); in sctp_make_abort_user()
1044 retval = NULL; in sctp_make_abort_user()
1046 return retval; in sctp_make_abort_user()
1079 struct sctp_chunk *retval; in sctp_make_abort_violation() local
1082 retval = sctp_make_abort(asoc, chunk, sizeof(struct sctp_errhdr) + in sctp_make_abort_violation()
1084 if (!retval) in sctp_make_abort_violation()
1087 sctp_init_cause(retval, SCTP_ERROR_PROTO_VIOLATION, paylen + in sctp_make_abort_violation()
1092 sctp_addto_chunk(retval, paylen, payload); in sctp_make_abort_violation()
1093 sctp_addto_param(retval, sizeof(phdr), &phdr); in sctp_make_abort_violation()
1096 return retval; in sctp_make_abort_violation()
1107 struct sctp_chunk *retval; in sctp_make_violation_paramlen() local
1109 retval = sctp_make_abort(asoc, chunk, payload_len); in sctp_make_violation_paramlen()
1110 if (!retval) in sctp_make_violation_paramlen()
1113 sctp_init_cause(retval, SCTP_ERROR_PROTO_VIOLATION, in sctp_make_violation_paramlen()
1115 sctp_addto_chunk(retval, sizeof(error), error); in sctp_make_violation_paramlen()
1116 sctp_addto_param(retval, sizeof(*param), param); in sctp_make_violation_paramlen()
1119 return retval; in sctp_make_violation_paramlen()
1128 struct sctp_chunk *retval; in sctp_make_violation_max_retrans() local
1130 retval = sctp_make_abort(asoc, chunk, payload_len); in sctp_make_violation_max_retrans()
1131 if (!retval) in sctp_make_violation_max_retrans()
1134 sctp_init_cause(retval, SCTP_ERROR_PROTO_VIOLATION, sizeof(error)); in sctp_make_violation_max_retrans()
1135 sctp_addto_chunk(retval, sizeof(error), error); in sctp_make_violation_max_retrans()
1138 return retval; in sctp_make_violation_max_retrans()
1145 struct sctp_chunk *retval; in sctp_make_new_encap_port() local
1147 retval = sctp_make_abort(asoc, chunk, in sctp_make_new_encap_port()
1149 if (!retval) in sctp_make_new_encap_port()
1152 sctp_init_cause(retval, SCTP_ERROR_NEW_ENCAP_PORT, sizeof(nep)); in sctp_make_new_encap_port()
1155 sctp_addto_chunk(retval, sizeof(nep), &nep); in sctp_make_new_encap_port()
1158 return retval; in sctp_make_new_encap_port()
1167 struct sctp_chunk *retval; in sctp_make_heartbeat() local
1169 retval = sctp_make_control(asoc, SCTP_CID_HEARTBEAT, 0, in sctp_make_heartbeat()
1172 if (!retval) in sctp_make_heartbeat()
1185 retval->transport = (struct sctp_transport *) transport; in sctp_make_heartbeat()
1186 retval->subh.hbs_hdr = sctp_addto_chunk(retval, sizeof(hbinfo), in sctp_make_heartbeat()
1188 retval->pmtu_probe = !!probe_size; in sctp_make_heartbeat()
1191 return retval; in sctp_make_heartbeat()
1199 struct sctp_chunk *retval; in sctp_make_heartbeat_ack() local
1201 retval = sctp_make_control(asoc, SCTP_CID_HEARTBEAT_ACK, 0, paylen, in sctp_make_heartbeat_ack()
1203 if (!retval) in sctp_make_heartbeat_ack()
1206 retval->subh.hbs_hdr = sctp_addto_chunk(retval, paylen, payload); in sctp_make_heartbeat_ack()
1218 retval->transport = chunk->transport; in sctp_make_heartbeat_ack()
1221 return retval; in sctp_make_heartbeat_ack()
1237 struct sctp_chunk *retval; in sctp_make_pad() local
1239 retval = sctp_make_control(asoc, SCTP_CID_PAD, 0, len, GFP_ATOMIC); in sctp_make_pad()
1240 if (!retval) in sctp_make_pad()
1243 skb_put_zero(retval->skb, len); in sctp_make_pad()
1244 retval->chunk_hdr->length = htons(ntohs(retval->chunk_hdr->length) + len); in sctp_make_pad()
1245 retval->chunk_end = skb_tail_pointer(retval->skb); in sctp_make_pad()
1247 return retval; in sctp_make_pad()
1258 struct sctp_chunk *retval; in sctp_make_op_error_space() local
1260 retval = sctp_make_control(asoc, SCTP_CID_ERROR, 0, in sctp_make_op_error_space()
1263 if (!retval) in sctp_make_op_error_space()
1275 retval->transport = chunk->transport; in sctp_make_op_error_space()
1278 return retval; in sctp_make_op_error_space()
1311 struct sctp_chunk *retval; in sctp_make_op_error() local
1313 retval = sctp_make_op_error_space(asoc, chunk, paylen + reserve_tail); in sctp_make_op_error()
1314 if (!retval) in sctp_make_op_error()
1317 sctp_init_cause(retval, cause_code, paylen + reserve_tail); in sctp_make_op_error()
1318 sctp_addto_chunk(retval, paylen, payload); in sctp_make_op_error()
1320 sctp_addto_param(retval, reserve_tail, NULL); in sctp_make_op_error()
1323 return retval; in sctp_make_op_error()
1331 struct sctp_chunk *retval; in sctp_make_auth() local
1338 retval = sctp_make_control(asoc, SCTP_CID_AUTH, 0, in sctp_make_auth()
1341 if (!retval) in sctp_make_auth()
1347 retval->subh.auth_hdr = sctp_addto_chunk(retval, sizeof(auth_hdr), in sctp_make_auth()
1350 skb_put_zero(retval->skb, hmac_desc->hmac_len); in sctp_make_auth()
1353 retval->chunk_hdr->length = in sctp_make_auth()
1354 htons(ntohs(retval->chunk_hdr->length) + hmac_desc->hmac_len); in sctp_make_auth()
1355 retval->chunk_end = skb_tail_pointer(retval->skb); in sctp_make_auth()
1357 return retval; in sctp_make_auth()
1379 struct sctp_chunk *retval; in sctp_chunkify() local
1381 retval = kmem_cache_zalloc(sctp_chunk_cachep, gfp); in sctp_chunkify()
1383 if (!retval) in sctp_chunkify()
1388 INIT_LIST_HEAD(&retval->list); in sctp_chunkify()
1389 retval->skb = skb; in sctp_chunkify()
1390 retval->asoc = (struct sctp_association *)asoc; in sctp_chunkify()
1391 retval->singleton = 1; in sctp_chunkify()
1393 retval->fast_retransmit = SCTP_CAN_FRTX; in sctp_chunkify()
1396 INIT_LIST_HEAD(&retval->transmitted_list); in sctp_chunkify()
1397 INIT_LIST_HEAD(&retval->frag_list); in sctp_chunkify()
1399 refcount_set(&retval->refcnt, 1); in sctp_chunkify()
1402 return retval; in sctp_chunkify()
1433 struct sctp_chunk *retval; in _sctp_make_chunk() local
1454 retval = sctp_chunkify(skb, asoc, sk, gfp); in _sctp_make_chunk()
1455 if (!retval) { in _sctp_make_chunk()
1460 retval->chunk_hdr = chunk_hdr; in _sctp_make_chunk()
1461 retval->chunk_end = ((__u8 *)chunk_hdr) + sizeof(*chunk_hdr); in _sctp_make_chunk()
1465 retval->auth = 1; in _sctp_make_chunk()
1467 return retval; in _sctp_make_chunk()
1661 struct sctp_cookie_param *retval; in sctp_pack_cookie() local
1684 retval = kzalloc(*cookie_len, GFP_ATOMIC); in sctp_pack_cookie()
1685 if (!retval) in sctp_pack_cookie()
1688 cookie = (struct sctp_signed_cookie *) retval->body; in sctp_pack_cookie()
1691 retval->p.type = SCTP_PARAM_STATE_COOKIE; in sctp_pack_cookie()
1692 retval->p.length = htons(*cookie_len); in sctp_pack_cookie()
1730 return retval; in sctp_pack_cookie()
1733 kfree(retval); in sctp_pack_cookie()
1746 struct sctp_association *retval = NULL; in sctp_unpack_cookie() local
1861 retval = sctp_association_new(ep, ep->base.sk, scope, gfp); in sctp_unpack_cookie()
1862 if (!retval) { in sctp_unpack_cookie()
1868 retval->peer.port = ntohs(chunk->sctp_hdr->source); in sctp_unpack_cookie()
1871 memcpy(&retval->c, bear_cookie, sizeof(*bear_cookie)); in sctp_unpack_cookie()
1873 if (sctp_assoc_set_bind_addr_from_cookie(retval, bear_cookie, in sctp_unpack_cookie()
1880 if (list_empty(&retval->base.bind_addr.address_list)) { in sctp_unpack_cookie()
1881 sctp_add_bind_addr(&retval->base.bind_addr, &chunk->dest, in sctp_unpack_cookie()
1886 retval->next_tsn = retval->c.initial_tsn; in sctp_unpack_cookie()
1887 retval->ctsn_ack_point = retval->next_tsn - 1; in sctp_unpack_cookie()
1888 retval->addip_serial = retval->c.initial_tsn; in sctp_unpack_cookie()
1889 retval->strreset_outseq = retval->c.initial_tsn; in sctp_unpack_cookie()
1890 retval->adv_peer_ack_point = retval->ctsn_ack_point; in sctp_unpack_cookie()
1891 retval->peer.prsctp_capable = retval->c.prsctp_capable; in sctp_unpack_cookie()
1892 retval->peer.adaptation_ind = retval->c.adaptation_ind; in sctp_unpack_cookie()
1895 return retval; in sctp_unpack_cookie()
1898 if (retval) in sctp_unpack_cookie()
1899 sctp_association_free(retval); in sctp_unpack_cookie()
2115 int retval = SCTP_IERROR_NO_ERROR; in sctp_process_unk_param() local
2119 retval = SCTP_IERROR_ERROR; in sctp_process_unk_param()
2124 retval = SCTP_IERROR_ERROR; in sctp_process_unk_param()
2138 retval = SCTP_IERROR_NOMEM; in sctp_process_unk_param()
2152 return retval; in sctp_process_unk_param()
2171 int retval = SCTP_IERROR_NO_ERROR; in sctp_verify_param() local
2205 retval = SCTP_IERROR_ABORT; in sctp_verify_param()
2212 retval = SCTP_IERROR_ABORT; in sctp_verify_param()
2233 retval = SCTP_IERROR_ABORT; in sctp_verify_param()
2249 retval = SCTP_IERROR_ABORT; in sctp_verify_param()
2275 retval = SCTP_IERROR_ABORT; in sctp_verify_param()
2283 retval = sctp_process_unk_param(asoc, param, chunk, err_chunk); in sctp_verify_param()
2286 return retval; in sctp_verify_param()
2552 int retval = 1, i; in sctp_process_param() local
2643 retval = 0; in sctp_process_param()
2712 retval = 0; in sctp_process_param()
2726 retval = 0; in sctp_process_param()
2742 retval = 0; in sctp_process_param()
2756 return retval; in sctp_process_param()
2777 __u32 retval; in sctp_generate_tsn() local
2779 get_random_bytes(&retval, sizeof(__u32)); in sctp_generate_tsn()
2780 return retval; in sctp_generate_tsn()
2810 struct sctp_chunk *retval; in sctp_make_asconf() local
2822 retval = sctp_make_control(asoc, SCTP_CID_ASCONF, 0, length, in sctp_make_asconf()
2824 if (!retval) in sctp_make_asconf()
2829 retval->subh.addip_hdr = in sctp_make_asconf()
2830 sctp_addto_chunk(retval, sizeof(asconf), &asconf); in sctp_make_asconf()
2831 retval->param_hdr.v = in sctp_make_asconf()
2832 sctp_addto_chunk(retval, addrlen, &addrparam); in sctp_make_asconf()
2834 return retval; in sctp_make_asconf()
2869 struct sctp_chunk *retval; in sctp_make_asconf_update_ip() local
2901 retval = sctp_make_asconf(asoc, laddr, totallen); in sctp_make_asconf_update_ip()
2902 if (!retval) in sctp_make_asconf_update_ip()
2915 sctp_addto_chunk(retval, paramlen, &param); in sctp_make_asconf_update_ip()
2916 sctp_addto_chunk(retval, addr_param_len, &addr_param); in sctp_make_asconf_update_ip()
2928 sctp_addto_chunk(retval, paramlen, &param); in sctp_make_asconf_update_ip()
2929 sctp_addto_chunk(retval, addr_param_len, &addr_param); in sctp_make_asconf_update_ip()
2931 return retval; in sctp_make_asconf_update_ip()
2954 struct sctp_chunk *retval; in sctp_make_asconf_set_prim() local
2964 retval = sctp_make_asconf(asoc, addr, len); in sctp_make_asconf_set_prim()
2965 if (!retval) in sctp_make_asconf_set_prim()
2972 sctp_addto_chunk(retval, sizeof(param), &param); in sctp_make_asconf_set_prim()
2973 sctp_addto_chunk(retval, addrlen, &addrparam); in sctp_make_asconf_set_prim()
2975 return retval; in sctp_make_asconf_set_prim()
3001 struct sctp_chunk *retval; in sctp_make_asconf_ack() local
3005 retval = sctp_make_control(asoc, SCTP_CID_ASCONF_ACK, 0, length, in sctp_make_asconf_ack()
3007 if (!retval) in sctp_make_asconf_ack()
3012 retval->subh.addip_hdr = in sctp_make_asconf_ack()
3013 sctp_addto_chunk(retval, sizeof(asconf), &asconf); in sctp_make_asconf_ack()
3015 return retval; in sctp_make_asconf_ack()
3484 int retval = 0; in sctp_process_asconf_ack() local
3526 retval = 1; in sctp_process_asconf_ack()
3562 return retval; in sctp_process_asconf_ack()
3570 struct sctp_chunk *retval = NULL; in sctp_make_fwdtsn() local
3578 retval = sctp_make_control(asoc, SCTP_CID_FWD_TSN, 0, hint, GFP_ATOMIC); in sctp_make_fwdtsn()
3580 if (!retval) in sctp_make_fwdtsn()
3584 retval->subh.fwdtsn_hdr = in sctp_make_fwdtsn()
3585 sctp_addto_chunk(retval, sizeof(ftsn_hdr), &ftsn_hdr); in sctp_make_fwdtsn()
3590 sctp_addto_chunk(retval, sizeof(skip), &skip); in sctp_make_fwdtsn()
3593 return retval; in sctp_make_fwdtsn()
3600 struct sctp_chunk *retval = NULL; in sctp_make_ifwdtsn() local
3606 retval = sctp_make_control(asoc, SCTP_CID_I_FWD_TSN, 0, hint, in sctp_make_ifwdtsn()
3608 if (!retval) in sctp_make_ifwdtsn()
3612 retval->subh.ifwdtsn_hdr = in sctp_make_ifwdtsn()
3613 sctp_addto_chunk(retval, sizeof(ftsn_hdr), &ftsn_hdr); in sctp_make_ifwdtsn()
3615 sctp_addto_chunk(retval, nstreams * sizeof(skiplist[0]), skiplist); in sctp_make_ifwdtsn()
3617 return retval; in sctp_make_ifwdtsn()
3639 struct sctp_chunk *retval; in sctp_make_reconf() local
3641 retval = sctp_make_control(asoc, SCTP_CID_RECONF, 0, length, in sctp_make_reconf()
3643 if (!retval) in sctp_make_reconf()
3646 reconf = (struct sctp_reconf_chunk *)retval->chunk_hdr; in sctp_make_reconf()
3647 retval->param_hdr.v = reconf->params; in sctp_make_reconf()
3649 return retval; in sctp_make_reconf()
3694 struct sctp_chunk *retval; in sctp_make_strreset_req() local
3700 retval = sctp_make_reconf(asoc, SCTP_PAD4(outlen) + SCTP_PAD4(inlen)); in sctp_make_strreset_req()
3701 if (!retval) in sctp_make_strreset_req()
3711 sctp_addto_chunk(retval, sizeof(outreq), &outreq); in sctp_make_strreset_req()
3714 sctp_addto_chunk(retval, stream_len, stream_list); in sctp_make_strreset_req()
3722 sctp_addto_chunk(retval, sizeof(inreq), &inreq); in sctp_make_strreset_req()
3725 sctp_addto_chunk(retval, stream_len, stream_list); in sctp_make_strreset_req()
3728 return retval; in sctp_make_strreset_req()
3745 struct sctp_chunk *retval; in sctp_make_strreset_tsnreq() local
3747 retval = sctp_make_reconf(asoc, length); in sctp_make_strreset_tsnreq()
3748 if (!retval) in sctp_make_strreset_tsnreq()
3755 sctp_addto_chunk(retval, sizeof(tsnreq), &tsnreq); in sctp_make_strreset_tsnreq()
3757 return retval; in sctp_make_strreset_tsnreq()
3777 struct sctp_chunk *retval; in sctp_make_strreset_addstrm() local
3779 retval = sctp_make_reconf(asoc, (!!out + !!in) * size); in sctp_make_strreset_addstrm()
3780 if (!retval) in sctp_make_strreset_addstrm()
3790 sctp_addto_chunk(retval, size, &addstrm); in sctp_make_strreset_addstrm()
3800 sctp_addto_chunk(retval, size, &addstrm); in sctp_make_strreset_addstrm()
3803 return retval; in sctp_make_strreset_addstrm()
3822 struct sctp_chunk *retval; in sctp_make_strreset_resp() local
3824 retval = sctp_make_reconf(asoc, length); in sctp_make_strreset_resp()
3825 if (!retval) in sctp_make_strreset_resp()
3833 sctp_addto_chunk(retval, sizeof(resp), &resp); in sctp_make_strreset_resp()
3835 return retval; in sctp_make_strreset_resp()
3860 struct sctp_chunk *retval; in sctp_make_strreset_tsnresp() local
3862 retval = sctp_make_reconf(asoc, length); in sctp_make_strreset_tsnresp()
3863 if (!retval) in sctp_make_strreset_tsnresp()
3874 sctp_addto_chunk(retval, sizeof(tsnresp), &tsnresp); in sctp_make_strreset_tsnresp()
3876 return retval; in sctp_make_strreset_tsnresp()