• Home
  • Raw
  • Download

Lines Matching refs:length

152 	err.length = htons(len);  in sctp_init_cause()
287 if (auth_hmacs->length) in sctp_make_init()
288 chunksize += SCTP_PAD4(ntohs(auth_hmacs->length)); in sctp_make_init()
294 if (auth_chunks->length) in sctp_make_init()
295 chunksize += SCTP_PAD4(ntohs(auth_chunks->length)); in sctp_make_init()
336 sat.param_hdr.length = htons(SCTP_SAT_LEN(num_types)); in sctp_make_init()
348 ext_param.param_hdr.length = htons(sizeof(ext_param) + num_ext); in sctp_make_init()
358 aiparam.param_hdr.length = htons(sizeof(aiparam)); 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()
450 chunksize += ntohs(auth_random->length); in sctp_make_init_ack()
453 if (auth_hmacs->length) in sctp_make_init_ack()
454 chunksize += SCTP_PAD4(ntohs(auth_hmacs->length)); in sctp_make_init_ack()
459 if (auth_chunks->length) in sctp_make_init_ack()
460 chunksize += SCTP_PAD4(ntohs(auth_chunks->length)); in sctp_make_init_ack()
498 ext_param.param_hdr.length = htons(sizeof(ext_param) + num_ext); in sctp_make_init_ack()
507 aiparam.param_hdr.length = htons(sizeof(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()
1055 int chunklen = ntohs(chunk->chunk_hdr->length); in sctp_addto_param()
1066 chunk->chunk_hdr->length = htons(chunklen + len); in sctp_addto_param()
1091 phdr.length = chunk->chunk_hdr->length; in sctp_make_abort_violation()
1176 hbinfo.param_hdr.length = htons(sizeof(hbinfo)); in sctp_make_heartbeat()
1244 retval->chunk_hdr->length = htons(ntohs(retval->chunk_hdr->length) + len); in sctp_make_pad()
1353 retval->chunk_hdr->length = in sctp_make_auth()
1354 htons(ntohs(retval->chunk_hdr->length) + hmac_desc->hmac_len); in sctp_make_auth()
1451 chunk_hdr->length = htons(sizeof(*chunk_hdr)); in _sctp_make_chunk()
1538 int chunklen = ntohs(chunk->chunk_hdr->length); in sctp_addto_chunk()
1546 chunk->chunk_hdr->length = htons(chunklen + padlen + len); in sctp_addto_chunk()
1569 chunk->chunk_hdr->length = in sctp_user_addto_chunk()
1570 htons(ntohs(chunk->chunk_hdr->length) + len); in sctp_user_addto_chunk()
1671 + ntohs(init_chunk->chunk_hdr->length) + addrs_len; in sctp_pack_cookie()
1692 retval->p.length = htons(*cookie_len); in sctp_pack_cookie()
1711 ntohs(init_chunk->chunk_hdr->length)); in sctp_pack_cookie()
1715 ntohs(init_chunk->chunk_hdr->length), raw_addrs, addrs_len); in sctp_pack_cookie()
1762 bodysize = ntohs(chunk->chunk_hdr->length) - headersize; in sctp_unpack_cookie()
1769 len = ntohs(chunk->chunk_hdr->length); in sctp_unpack_cookie()
1994 __u16 len = ntohs(param.p->length); in sctp_process_hn_param()
2015 __u16 num_ext = ntohs(param.p->length) - sizeof(struct sctp_paramhdr); in sctp_verify_ext_param()
2049 __u16 num_ext = ntohs(param.p->length) - sizeof(struct sctp_paramhdr); in sctp_process_ext_param()
2144 ntohs(param.p->length))) in sctp_process_unk_param()
2145 sctp_addto_chunk(*errp, ntohs(param.p->length), in sctp_process_unk_param()
2201 if (ntohs(param.p->length) < sizeof(struct sctp_addip_param) + in sctp_verify_param()
2229 if (SCTP_AUTH_RANDOM_LENGTH != ntohs(param.p->length) - in sctp_verify_param()
2246 if (260 < ntohs(param.p->length)) { in sctp_verify_param()
2258 n_elt = (ntohs(param.p->length) - in sctp_verify_param()
2612 sat = ntohs(param.p->length) - sizeof(struct sctp_paramhdr); in sctp_process_param()
2639 ntohs(param.p->length) - sizeof(struct sctp_paramhdr); in sctp_process_param()
2710 ntohs(param.p->length), gfp); in sctp_process_param()
2724 ntohs(param.p->length), gfp); in sctp_process_param()
2740 ntohs(param.p->length), gfp); in sctp_process_param()
2811 int length = sizeof(asconf) + vparam_len; in sctp_make_asconf() local
2819 length += addrlen; in sctp_make_asconf()
2822 retval = sctp_make_control(asoc, SCTP_CID_ASCONF, 0, length, in sctp_make_asconf()
2912 param.param_hdr.length = htons(paramlen + addr_param_len); in sctp_make_asconf_update_ip()
2925 param.param_hdr.length = htons(paramlen + addr_param_len); in sctp_make_asconf_update_ip()
2969 param.param_hdr.length = htons(len); in sctp_make_asconf_set_prim()
3002 int length = sizeof(asconf) + vparam_len; in sctp_make_asconf_ack() local
3005 retval = sctp_make_control(asoc, SCTP_CID_ASCONF_ACK, 0, length, in sctp_make_asconf_ack()
3036 ntohs(asconf_param->param_hdr.length); in sctp_add_asconf_response()
3041 ack_param.param_hdr.length = htons(sizeof(ack_param) + in sctp_add_asconf_response()
3052 err_param.length = htons(err_param_len + asconf_param_len); in sctp_add_asconf_response()
3214 size_t length = ntohs(param.p->length); in sctp_verify_asconf() local
3221 if (length != sizeof(struct sctp_ipv4addr_param)) in sctp_verify_asconf()
3231 if (length != sizeof(struct sctp_ipv6addr_param)) in sctp_verify_asconf()
3243 length = ntohs(param.addip->param_hdr.length); in sctp_verify_asconf()
3244 if (length < sizeof(struct sctp_addip_param) + in sctp_verify_asconf()
3250 if (length != sizeof(struct sctp_addip_param)) in sctp_verify_asconf()
3281 int length = 0, chunk_len; in sctp_process_asconf() local
3287 chunk_len = ntohs(asconf->chunk_hdr->length) - in sctp_process_asconf()
3293 length = sizeof(*hdr); in sctp_process_asconf()
3294 addr_param = (union sctp_addr_param *)(asconf->skb->data + length); in sctp_process_asconf()
3295 chunk_len -= length; in sctp_process_asconf()
3300 length = ntohs(addr_param->p.length); in sctp_process_asconf()
3301 chunk_len -= length; in sctp_process_asconf()
3427 int length; in sctp_get_asconf_response() local
3434 asconf_ack_len = ntohs(asconf_ack->chunk_hdr->length) - in sctp_get_asconf_response()
3440 length = sizeof(struct sctp_addiphdr); in sctp_get_asconf_response()
3442 length); in sctp_get_asconf_response()
3443 asconf_ack_len -= length; in sctp_get_asconf_response()
3451 length = sizeof(*asconf_ack_param); in sctp_get_asconf_response()
3452 err_param = (void *)asconf_ack_param + length; in sctp_get_asconf_response()
3453 asconf_ack_len -= length; in sctp_get_asconf_response()
3464 length = ntohs(asconf_ack_param->param_hdr.length); in sctp_get_asconf_response()
3465 asconf_ack_param = (void *)asconf_ack_param + length; in sctp_get_asconf_response()
3466 asconf_ack_len -= length; in sctp_get_asconf_response()
3482 int length = 0; in sctp_process_asconf_ack() local
3489 length = sizeof(struct sctp_addip_chunk); in sctp_process_asconf_ack()
3490 addr_param = (union sctp_addr_param *)(asconf->skb->data + length); in sctp_process_asconf_ack()
3491 asconf_len -= length; in sctp_process_asconf_ack()
3496 length = ntohs(addr_param->p.length); in sctp_process_asconf_ack()
3497 asconf_param = (void *)addr_param + length; in sctp_process_asconf_ack()
3498 asconf_len -= length; in sctp_process_asconf_ack()
3547 length = ntohs(asconf_param->param_hdr.length); in sctp_process_asconf_ack()
3548 asconf_param = (void *)asconf_param + length; in sctp_process_asconf_ack()
3549 asconf_len -= length; in sctp_process_asconf_ack()
3636 int length) in sctp_make_reconf() argument
3641 retval = sctp_make_control(asoc, SCTP_CID_RECONF, 0, length, in sctp_make_reconf()
3706 outreq.param_hdr.length = htons(outlen); in sctp_make_strreset_req()
3719 inreq.param_hdr.length = htons(inlen); in sctp_make_strreset_req()
3744 __u16 length = sizeof(tsnreq); in sctp_make_strreset_tsnreq() local
3747 retval = sctp_make_reconf(asoc, length); in sctp_make_strreset_tsnreq()
3752 tsnreq.param_hdr.length = htons(length); in sctp_make_strreset_tsnreq()
3785 addstrm.param_hdr.length = htons(size); in sctp_make_strreset_addstrm()
3795 addstrm.param_hdr.length = htons(size); in sctp_make_strreset_addstrm()
3821 __u16 length = sizeof(resp); in sctp_make_strreset_resp() local
3824 retval = sctp_make_reconf(asoc, length); in sctp_make_strreset_resp()
3829 resp.param_hdr.length = htons(length); in sctp_make_strreset_resp()
3859 __u16 length = sizeof(tsnresp); in sctp_make_strreset_tsnresp() local
3862 retval = sctp_make_reconf(asoc, length); in sctp_make_strreset_tsnresp()
3867 tsnresp.param_hdr.length = htons(length); in sctp_make_strreset_tsnresp()
3890 __u16 length = ntohs(param.p->length); in sctp_verify_reconf() local
3897 if (length < sizeof(struct sctp_strreset_outreq) || in sctp_verify_reconf()
3903 if (length < sizeof(struct sctp_strreset_inreq) || in sctp_verify_reconf()
3908 if ((length != sizeof(struct sctp_strreset_resp) && in sctp_verify_reconf()
3909 length != sizeof(struct sctp_strreset_resptsn)) || in sctp_verify_reconf()
3915 if (length != in sctp_verify_reconf()
3920 if (length != sizeof(struct sctp_strreset_addstrm) || in sctp_verify_reconf()
3925 if (length != sizeof(struct sctp_strreset_addstrm) || in sctp_verify_reconf()