Lines Matching refs:length
146 err.length = htons(len); in sctp_init_cause()
164 err.length = htons(len); in sctp_init_cause_fixed()
288 if (auth_hmacs->length) in sctp_make_init()
289 chunksize += WORD_ROUND(ntohs(auth_hmacs->length)); in sctp_make_init()
295 if (auth_chunks->length) in sctp_make_init()
296 chunksize += WORD_ROUND(ntohs(auth_chunks->length)); in sctp_make_init()
338 sat.param_hdr.length = htons(SCTP_SAT_LEN(num_types)); in sctp_make_init()
349 ext_param.param_hdr.length = in sctp_make_init()
361 aiparam.param_hdr.length = htons(sizeof(aiparam)); in sctp_make_init()
371 sctp_addto_chunk(retval, ntohs(auth_hmacs->length), in sctp_make_init()
374 sctp_addto_chunk(retval, ntohs(auth_chunks->length), in sctp_make_init()
445 chunksize += ntohs(auth_random->length); in sctp_make_init_ack()
448 if (auth_hmacs->length) in sctp_make_init_ack()
449 chunksize += WORD_ROUND(ntohs(auth_hmacs->length)); in sctp_make_init_ack()
454 if (auth_chunks->length) in sctp_make_init_ack()
455 chunksize += WORD_ROUND(ntohs(auth_chunks->length)); in sctp_make_init_ack()
491 ext_param.param_hdr.length = in sctp_make_init_ack()
502 aiparam.param_hdr.length = htons(sizeof(aiparam)); in sctp_make_init_ack()
508 sctp_addto_chunk(retval, ntohs(auth_random->length), in sctp_make_init_ack()
511 sctp_addto_chunk(retval, ntohs(auth_hmacs->length), in sctp_make_init_ack()
514 sctp_addto_chunk(retval, ntohs(auth_chunks->length), in sctp_make_init_ack()
1050 int chunklen = ntohs(chunk->chunk_hdr->length); in sctp_addto_param()
1060 chunk->chunk_hdr->length = htons(chunklen + len); in sctp_addto_param()
1085 phdr.length = chunk->chunk_hdr->length; in sctp_make_abort_violation()
1148 hbinfo.param_hdr.length = htons(sizeof(sctp_sender_hb_info_t)); in sctp_make_heartbeat()
1288 retval->chunk_hdr->length = in sctp_make_auth()
1289 htons(ntohs(retval->chunk_hdr->length) + hmac_desc->hmac_len); in sctp_make_auth()
1381 chunk_hdr->length = htons(sizeof(sctp_chunkhdr_t)); in _sctp_make_chunk()
1462 int chunklen = ntohs(chunk->chunk_hdr->length); in sctp_addto_chunk()
1472 chunk->chunk_hdr->length = htons(chunklen + padlen + len); in sctp_addto_chunk()
1509 chunk->chunk_hdr->length = in sctp_user_addto_chunk()
1510 htons(ntohs(chunk->chunk_hdr->length) + len); in sctp_user_addto_chunk()
1619 + ntohs(init_chunk->chunk_hdr->length) + addrs_len; in sctp_pack_cookie()
1640 retval->p.length = htons(*cookie_len); in sctp_pack_cookie()
1659 ntohs(init_chunk->chunk_hdr->length)); in sctp_pack_cookie()
1663 ntohs(init_chunk->chunk_hdr->length), raw_addrs, addrs_len); in sctp_pack_cookie()
1713 bodysize = ntohs(chunk->chunk_hdr->length) - headersize; in sctp_unpack_cookie()
1720 len = ntohs(chunk->chunk_hdr->length); in sctp_unpack_cookie()
1794 len = ntohs(chunk->chunk_hdr->length); in sctp_unpack_cookie()
1943 __u16 len = ntohs(param.p->length); in sctp_process_hn_param()
1966 __u16 num_ext = ntohs(param.p->length) - sizeof(sctp_paramhdr_t); in sctp_verify_ext_param()
2001 __u16 num_ext = ntohs(param.p->length) - sizeof(sctp_paramhdr_t); in sctp_process_ext_param()
2078 WORD_ROUND(ntohs(param.p->length)))) in sctp_process_unk_param()
2080 WORD_ROUND(ntohs(param.p->length)), in sctp_process_unk_param()
2166 ntohs(param.p->length) - sizeof(sctp_paramhdr_t)) { in sctp_verify_param()
2182 if (260 < ntohs(param.p->length)) { in sctp_verify_param()
2194 n_elt = (ntohs(param.p->length) - sizeof(sctp_paramhdr_t)) >> 1; in sctp_verify_param()
2558 sat = ntohs(param.p->length) - sizeof(sctp_paramhdr_t); in sctp_process_param()
2585 ntohs(param.p->length) - sizeof(sctp_paramhdr_t); in sctp_process_param()
2649 ntohs(param.p->length), gfp); in sctp_process_param()
2662 ntohs(param.p->length), gfp); in sctp_process_param()
2677 ntohs(param.p->length), gfp); in sctp_process_param()
2748 int length = sizeof(asconf) + vparam_len; in sctp_make_asconf() local
2756 length += addrlen; in sctp_make_asconf()
2759 retval = sctp_make_control(asoc, SCTP_CID_ASCONF, 0, length); in sctp_make_asconf()
2850 param.param_hdr.length = htons(paramlen + addr_param_len); in sctp_make_asconf_update_ip()
2863 param.param_hdr.length = htons(paramlen + addr_param_len); in sctp_make_asconf_update_ip()
2907 param.param_hdr.length = htons(len); in sctp_make_asconf_set_prim()
2940 int length = sizeof(asconf) + vparam_len; in sctp_make_asconf_ack() local
2943 retval = sctp_make_control(asoc, SCTP_CID_ASCONF_ACK, 0, length); in sctp_make_asconf_ack()
2972 ntohs(asconf_param->param_hdr.length); in sctp_add_asconf_response()
2977 ack_param.param_hdr.length = htons(sizeof(ack_param) + in sctp_add_asconf_response()
2988 err_param.length = htons(err_param_len + asconf_param_len); in sctp_add_asconf_response()
3126 size_t length = ntohs(param.p->length); in sctp_verify_asconf() local
3133 if (length != sizeof(sctp_ipv4addr_param_t)) in sctp_verify_asconf()
3138 if (length != sizeof(sctp_ipv6addr_param_t)) in sctp_verify_asconf()
3148 length = ntohs(param.addip->param_hdr.length); in sctp_verify_asconf()
3149 if (length < sizeof(sctp_addip_param_t) + in sctp_verify_asconf()
3155 if (length != sizeof(sctp_addip_param_t)) in sctp_verify_asconf()
3189 int length = 0; in sctp_process_asconf() local
3193 chunk_len = ntohs(asconf->chunk_hdr->length) - sizeof(sctp_chunkhdr_t); in sctp_process_asconf()
3198 length = sizeof(sctp_addiphdr_t); in sctp_process_asconf()
3199 addr_param = (union sctp_addr_param *)(asconf->skb->data + length); in sctp_process_asconf()
3200 chunk_len -= length; in sctp_process_asconf()
3205 length = ntohs(addr_param->p.length); in sctp_process_asconf()
3206 asconf_param = (void *)addr_param + length; in sctp_process_asconf()
3207 chunk_len -= length; in sctp_process_asconf()
3332 int length; in sctp_get_asconf_response() local
3341 asconf_ack_len = ntohs(asconf_ack->chunk_hdr->length) - in sctp_get_asconf_response()
3347 length = sizeof(sctp_addiphdr_t); in sctp_get_asconf_response()
3349 length); in sctp_get_asconf_response()
3350 asconf_ack_len -= length; in sctp_get_asconf_response()
3358 length = sizeof(sctp_addip_param_t); in sctp_get_asconf_response()
3359 err_param = (void *)asconf_ack_param + length; in sctp_get_asconf_response()
3360 asconf_ack_len -= length; in sctp_get_asconf_response()
3371 length = ntohs(asconf_ack_param->param_hdr.length); in sctp_get_asconf_response()
3372 asconf_ack_param = (void *)asconf_ack_param + length; in sctp_get_asconf_response()
3373 asconf_ack_len -= length; in sctp_get_asconf_response()
3386 int length = 0; in sctp_process_asconf_ack() local
3396 length = sizeof(sctp_addip_chunk_t); in sctp_process_asconf_ack()
3397 addr_param = (union sctp_addr_param *)(asconf->skb->data + length); in sctp_process_asconf_ack()
3398 asconf_len -= length; in sctp_process_asconf_ack()
3403 length = ntohs(addr_param->p.length); in sctp_process_asconf_ack()
3404 asconf_param = (void *)addr_param + length; in sctp_process_asconf_ack()
3405 asconf_len -= length; in sctp_process_asconf_ack()
3454 length = ntohs(asconf_param->param_hdr.length); in sctp_process_asconf_ack()
3455 asconf_param = (void *)asconf_param + length; in sctp_process_asconf_ack()
3456 asconf_len -= length; in sctp_process_asconf_ack()