Lines Matching refs:ntohs
288 chunksize += SCTP_PAD4(ntohs(auth_hmacs->length)); in sctp_make_init()
295 chunksize += SCTP_PAD4(ntohs(auth_chunks->length)); 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()
454 chunksize += SCTP_PAD4(ntohs(auth_hmacs->length)); in sctp_make_init_ack()
460 chunksize += SCTP_PAD4(ntohs(auth_chunks->length)); 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()
1244 retval->chunk_hdr->length = htons(ntohs(retval->chunk_hdr->length) + len); in sctp_make_pad()
1354 htons(ntohs(retval->chunk_hdr->length) + hmac_desc->hmac_len); in sctp_make_auth()
1538 int chunklen = ntohs(chunk->chunk_hdr->length); in sctp_addto_chunk()
1570 htons(ntohs(chunk->chunk_hdr->length) + len); in sctp_user_addto_chunk()
1590 sid = ntohs(chunk->subh.data_hdr->stream); in sctp_chunk_assign_ssn()
1671 + ntohs(init_chunk->chunk_hdr->length) + addrs_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()
1818 ntohs(chunk->sctp_hdr->dest) != bear_cookie->my_port) { in sctp_unpack_cookie()
1868 retval->peer.port = ntohs(chunk->sctp_hdr->source); 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()
2266 id = ntohs(hmacs->hmac_ids[i]); in sctp_verify_param()
2281 __func__, ntohs(param.p->type), cid); in sctp_verify_param()
2442 ntohs(peer_init->init_hdr.num_outbound_streams); in sctp_process_init()
2444 ntohs(peer_init->init_hdr.num_inbound_streams); in sctp_process_init()
2454 ntohs(peer_init->init_hdr.num_inbound_streams)) { in sctp_process_init()
2456 ntohs(peer_init->init_hdr.num_inbound_streams); in sctp_process_init()
2460 ntohs(peer_init->init_hdr.num_outbound_streams)) { in sctp_process_init()
2462 ntohs(peer_init->init_hdr.num_outbound_streams); in sctp_process_init()
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()
2752 __func__, ntohs(param.p->type), asoc); in sctp_process_param()
3036 ntohs(asconf_param->param_hdr.length); in sctp_add_asconf_response()
3214 size_t length = ntohs(param.p->length); in sctp_verify_asconf()
3243 length = ntohs(param.addip->param_hdr.length); in sctp_verify_asconf()
3287 chunk_len = ntohs(asconf->chunk_hdr->length) - in sctp_process_asconf()
3300 length = ntohs(addr_param->p.length); in sctp_process_asconf()
3434 asconf_ack_len = ntohs(asconf_ack->chunk_hdr->length) - in sctp_get_asconf_response()
3464 length = ntohs(asconf_ack_param->param_hdr.length); in sctp_get_asconf_response()
3496 length = ntohs(addr_param->p.length); in sctp_process_asconf_ack()
3547 length = ntohs(asconf_param->param_hdr.length); in sctp_process_asconf_ack()
3890 __u16 length = ntohs(param.p->length); in sctp_verify_reconf()