Lines Matching refs:ntohs

288 			chunksize += SCTP_PAD4(ntohs(auth_hmacs->length));
295 chunksize += SCTP_PAD4(ntohs(auth_chunks->length));
368 sctp_addto_chunk(retval, ntohs(auth_hmacs->length),
371 sctp_addto_chunk(retval, ntohs(auth_chunks->length),
450 chunksize += ntohs(auth_random->length);
454 chunksize += SCTP_PAD4(ntohs(auth_hmacs->length));
460 chunksize += SCTP_PAD4(ntohs(auth_chunks->length));
513 sctp_addto_chunk(retval, ntohs(auth_random->length),
516 sctp_addto_chunk(retval, ntohs(auth_hmacs->length),
519 sctp_addto_chunk(retval, ntohs(auth_chunks->length),
1059 int chunklen = ntohs(chunk->chunk_hdr->length);
1309 htons(ntohs(retval->chunk_hdr->length) + hmac_desc->hmac_len);
1493 int chunklen = ntohs(chunk->chunk_hdr->length);
1525 htons(ntohs(chunk->chunk_hdr->length) + len);
1545 sid = ntohs(chunk->subh.data_hdr->stream);
1626 + ntohs(init_chunk->chunk_hdr->length) + addrs_len;
1666 ntohs(init_chunk->chunk_hdr->length));
1670 ntohs(init_chunk->chunk_hdr->length), raw_addrs, addrs_len);
1717 bodysize = ntohs(chunk->chunk_hdr->length) - headersize;
1724 len = ntohs(chunk->chunk_hdr->length);
1773 ntohs(chunk->sctp_hdr->dest) != bear_cookie->my_port) {
1823 retval->peer.port = ntohs(chunk->sctp_hdr->source);
1949 __u16 len = ntohs(param.p->length);
1970 __u16 num_ext = ntohs(param.p->length) - sizeof(struct sctp_paramhdr);
2004 __u16 num_ext = ntohs(param.p->length) - sizeof(struct sctp_paramhdr);
2099 ntohs(param.p->length)))
2100 sctp_addto_chunk(*errp, ntohs(param.p->length),
2156 if (ntohs(param.p->length) < sizeof(struct sctp_addip_param) +
2184 if (SCTP_AUTH_RANDOM_LENGTH != ntohs(param.p->length) -
2201 if (260 < ntohs(param.p->length)) {
2213 n_elt = (ntohs(param.p->length) -
2221 id = ntohs(hmacs->hmac_ids[i]);
2236 __func__, ntohs(param.p->type), cid);
2396 ntohs(peer_init->init_hdr.num_outbound_streams);
2398 ntohs(peer_init->init_hdr.num_inbound_streams);
2408 ntohs(peer_init->init_hdr.num_inbound_streams)) {
2410 ntohs(peer_init->init_hdr.num_inbound_streams);
2414 ntohs(peer_init->init_hdr.num_outbound_streams)) {
2416 ntohs(peer_init->init_hdr.num_outbound_streams);
2566 sat = ntohs(param.p->length) - sizeof(struct sctp_paramhdr);
2593 ntohs(param.p->length) - sizeof(struct sctp_paramhdr);
2664 ntohs(param.p->length), gfp);
2678 ntohs(param.p->length), gfp);
2694 ntohs(param.p->length), gfp);
2706 __func__, ntohs(param.p->type), asoc);
2990 ntohs(asconf_param->param_hdr.length);
3168 size_t length = ntohs(param.p->length);
3197 length = ntohs(param.addip->param_hdr.length);
3241 chunk_len = ntohs(asconf->chunk_hdr->length) -
3254 length = ntohs(addr_param->p.length);
3388 asconf_ack_len = ntohs(asconf_ack->chunk_hdr->length) -
3418 length = ntohs(asconf_ack_param->param_hdr.length);
3450 length = ntohs(addr_param->p.length);
3501 length = ntohs(asconf_param->param_hdr.length);
3844 __u16 length = ntohs(param.p->length);