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()
1059 int chunklen = ntohs(chunk->chunk_hdr->length); in sctp_addto_param()
1309 htons(ntohs(retval->chunk_hdr->length) + hmac_desc->hmac_len); in sctp_make_auth()
1493 int chunklen = ntohs(chunk->chunk_hdr->length); in sctp_addto_chunk()
1525 htons(ntohs(chunk->chunk_hdr->length) + len); in sctp_user_addto_chunk()
1545 sid = ntohs(chunk->subh.data_hdr->stream); in sctp_chunk_assign_ssn()
1626 + ntohs(init_chunk->chunk_hdr->length) + addrs_len; in sctp_pack_cookie()
1666 ntohs(init_chunk->chunk_hdr->length)); in sctp_pack_cookie()
1670 ntohs(init_chunk->chunk_hdr->length), raw_addrs, addrs_len); in sctp_pack_cookie()
1717 bodysize = ntohs(chunk->chunk_hdr->length) - headersize; in sctp_unpack_cookie()
1724 len = ntohs(chunk->chunk_hdr->length); in sctp_unpack_cookie()
1773 ntohs(chunk->sctp_hdr->dest) != bear_cookie->my_port) { in sctp_unpack_cookie()
1823 retval->peer.port = ntohs(chunk->sctp_hdr->source); in sctp_unpack_cookie()
1949 __u16 len = ntohs(param.p->length); in sctp_process_hn_param()
1970 __u16 num_ext = ntohs(param.p->length) - sizeof(struct sctp_paramhdr); in sctp_verify_ext_param()
2004 __u16 num_ext = ntohs(param.p->length) - sizeof(struct sctp_paramhdr); in sctp_process_ext_param()
2099 ntohs(param.p->length))) in sctp_process_unk_param()
2100 sctp_addto_chunk(*errp, ntohs(param.p->length), in sctp_process_unk_param()
2177 if (SCTP_AUTH_RANDOM_LENGTH != ntohs(param.p->length) - in sctp_verify_param()
2194 if (260 < ntohs(param.p->length)) { in sctp_verify_param()
2206 n_elt = (ntohs(param.p->length) - in sctp_verify_param()
2214 id = ntohs(hmacs->hmac_ids[i]); in sctp_verify_param()
2229 __func__, ntohs(param.p->type), cid); in sctp_verify_param()
2387 ntohs(peer_init->init_hdr.num_outbound_streams); in sctp_process_init()
2389 ntohs(peer_init->init_hdr.num_inbound_streams); in sctp_process_init()
2399 ntohs(peer_init->init_hdr.num_inbound_streams)) { in sctp_process_init()
2401 ntohs(peer_init->init_hdr.num_inbound_streams); in sctp_process_init()
2405 ntohs(peer_init->init_hdr.num_outbound_streams)) { in sctp_process_init()
2407 ntohs(peer_init->init_hdr.num_outbound_streams); in sctp_process_init()
2556 sat = ntohs(param.p->length) - sizeof(struct sctp_paramhdr); in sctp_process_param()
2583 ntohs(param.p->length) - sizeof(struct sctp_paramhdr); in sctp_process_param()
2656 ntohs(param.p->length), gfp); in sctp_process_param()
2670 ntohs(param.p->length), gfp); in sctp_process_param()
2686 ntohs(param.p->length), gfp); in sctp_process_param()
2698 __func__, ntohs(param.p->type), asoc); in sctp_process_param()
2982 ntohs(asconf_param->param_hdr.length); in sctp_add_asconf_response()
3159 size_t length = ntohs(param.p->length); in sctp_verify_asconf()
3188 length = ntohs(param.addip->param_hdr.length); in sctp_verify_asconf()
3232 chunk_len = ntohs(asconf->chunk_hdr->length) - in sctp_process_asconf()
3245 length = ntohs(addr_param->p.length); in sctp_process_asconf()
3378 asconf_ack_len = ntohs(asconf_ack->chunk_hdr->length) - in sctp_get_asconf_response()
3408 length = ntohs(asconf_ack_param->param_hdr.length); in sctp_get_asconf_response()
3440 length = ntohs(addr_param->p.length); in sctp_process_asconf_ack()
3491 length = ntohs(asconf_param->param_hdr.length); in sctp_process_asconf_ack()
3834 __u16 length = ntohs(param.p->length); in sctp_verify_reconf()