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),
1055 int chunklen = ntohs(chunk->chunk_hdr->length);
1244 retval->chunk_hdr->length = htons(ntohs(retval->chunk_hdr->length) + len);
1354 htons(ntohs(retval->chunk_hdr->length) + hmac_desc->hmac_len);
1538 int chunklen = ntohs(chunk->chunk_hdr->length);
1570 htons(ntohs(chunk->chunk_hdr->length) + len);
1590 sid = ntohs(chunk->subh.data_hdr->stream);
1671 + ntohs(init_chunk->chunk_hdr->length) + addrs_len;
1711 ntohs(init_chunk->chunk_hdr->length));
1715 ntohs(init_chunk->chunk_hdr->length), raw_addrs, addrs_len);
1762 bodysize = ntohs(chunk->chunk_hdr->length) - headersize;
1769 len = ntohs(chunk->chunk_hdr->length);
1818 ntohs(chunk->sctp_hdr->dest) != bear_cookie->my_port) {
1868 retval->peer.port = ntohs(chunk->sctp_hdr->source);
1994 __u16 len = ntohs(param.p->length);
2015 __u16 num_ext = ntohs(param.p->length) - sizeof(struct sctp_paramhdr);
2049 __u16 num_ext = ntohs(param.p->length) - sizeof(struct sctp_paramhdr);
2144 ntohs(param.p->length)))
2145 sctp_addto_chunk(*errp, ntohs(param.p->length),
2201 if (ntohs(param.p->length) < sizeof(struct sctp_addip_param) +
2229 if (SCTP_AUTH_RANDOM_LENGTH != ntohs(param.p->length) -
2246 if (260 < ntohs(param.p->length)) {
2258 n_elt = (ntohs(param.p->length) -
2266 id = ntohs(hmacs->hmac_ids[i]);
2281 __func__, ntohs(param.p->type), cid);
2442 ntohs(peer_init->init_hdr.num_outbound_streams);
2444 ntohs(peer_init->init_hdr.num_inbound_streams);
2454 ntohs(peer_init->init_hdr.num_inbound_streams)) {
2456 ntohs(peer_init->init_hdr.num_inbound_streams);
2460 ntohs(peer_init->init_hdr.num_outbound_streams)) {
2462 ntohs(peer_init->init_hdr.num_outbound_streams);
2608 sat = ntohs(param.p->length) - sizeof(struct sctp_paramhdr);
2631 ntohs(param.p->length) - sizeof(struct sctp_paramhdr);
2702 ntohs(param.p->length), gfp);
2716 ntohs(param.p->length), gfp);
2732 ntohs(param.p->length), gfp);
2744 __func__, ntohs(param.p->type), asoc);
3028 ntohs(asconf_param->param_hdr.length);
3206 size_t length = ntohs(param.p->length);
3235 length = ntohs(param.addip->param_hdr.length);
3279 chunk_len = ntohs(asconf->chunk_hdr->length) -
3292 length = ntohs(addr_param->p.length);
3426 asconf_ack_len = ntohs(asconf_ack->chunk_hdr->length) -
3456 length = ntohs(asconf_ack_param->param_hdr.length);
3488 length = ntohs(addr_param->p.length);
3539 length = ntohs(asconf_param->param_hdr.length);
3882 __u16 length = ntohs(param.p->length);