• Home
  • Raw
  • Download

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()
2156 if (ntohs(param.p->length) < sizeof(struct sctp_addip_param) + in sctp_verify_param()
2184 if (SCTP_AUTH_RANDOM_LENGTH != ntohs(param.p->length) - in sctp_verify_param()
2201 if (260 < ntohs(param.p->length)) { in sctp_verify_param()
2213 n_elt = (ntohs(param.p->length) - in sctp_verify_param()
2221 id = ntohs(hmacs->hmac_ids[i]); in sctp_verify_param()
2236 __func__, ntohs(param.p->type), cid); in sctp_verify_param()
2396 ntohs(peer_init->init_hdr.num_outbound_streams); in sctp_process_init()
2398 ntohs(peer_init->init_hdr.num_inbound_streams); in sctp_process_init()
2408 ntohs(peer_init->init_hdr.num_inbound_streams)) { in sctp_process_init()
2410 ntohs(peer_init->init_hdr.num_inbound_streams); in sctp_process_init()
2414 ntohs(peer_init->init_hdr.num_outbound_streams)) { in sctp_process_init()
2416 ntohs(peer_init->init_hdr.num_outbound_streams); in sctp_process_init()
2566 sat = ntohs(param.p->length) - sizeof(struct sctp_paramhdr); in sctp_process_param()
2593 ntohs(param.p->length) - sizeof(struct sctp_paramhdr); in sctp_process_param()
2664 ntohs(param.p->length), gfp); in sctp_process_param()
2678 ntohs(param.p->length), gfp); in sctp_process_param()
2694 ntohs(param.p->length), gfp); in sctp_process_param()
2706 __func__, ntohs(param.p->type), asoc); in sctp_process_param()
2990 ntohs(asconf_param->param_hdr.length); in sctp_add_asconf_response()
3168 size_t length = ntohs(param.p->length); in sctp_verify_asconf()
3197 length = ntohs(param.addip->param_hdr.length); in sctp_verify_asconf()
3241 chunk_len = ntohs(asconf->chunk_hdr->length) - in sctp_process_asconf()
3254 length = ntohs(addr_param->p.length); in sctp_process_asconf()
3388 asconf_ack_len = ntohs(asconf_ack->chunk_hdr->length) - in sctp_get_asconf_response()
3418 length = ntohs(asconf_ack_param->param_hdr.length); in sctp_get_asconf_response()
3450 length = ntohs(addr_param->p.length); in sctp_process_asconf_ack()
3501 length = ntohs(asconf_param->param_hdr.length); in sctp_process_asconf_ack()
3844 __u16 length = ntohs(param.p->length); in sctp_verify_reconf()