Lines Matching refs:ntohs

101 	if (ntohs(cp->ch.chunk_length) < sizeof(struct sctp_init_chunk)) {
153 offset + ntohs(cp->ch.chunk_length))) {
312 if (asoc->pre_open_streams > ntohs(init->num_inbound_streams)) {
319 newcnt = ntohs(init->num_inbound_streams);
400 if (asoc->max_inbound_streams > ntohs(init->num_outbound_streams)) {
401 asoc->streamincnt = ntohs(init->num_outbound_streams);
502 initack_limit = offset + ntohs(cp->ch.chunk_length);
576 if (ntohs(cp->ch.chunk_length) != sizeof(struct sctp_heartbeat_chunk)) {
801 len = ntohs(abort->ch.chunk_length);
810 error = ntohs(cause->code);
907 if (ntohs(cp->ch.chunk_length) != sizeof(struct sctp_shutdown_chunk)) {
1189 remaining_length = ntohs(ch->chunk_length);
1201 cause_code = ntohs(cause->code);
1202 cause_length = ntohs(cause->length);
1306 sctp_process_unrecog_param(stcb, ntohs(unrec_parameter->param_type));
1372 if (ntohs(cp->ch.chunk_length) < sizeof(struct sctp_init_ack_chunk)) {
1577 initack_offset = init_offset + SCTP_SIZE32(ntohs(init_cp->ch.chunk_length));
1810 asoc->pre_open_streams = ntohs(initack_cp->init.num_outbound_streams);
1967 ntohs(initack_cp->init.num_outbound_streams);
2126 initack_offset = init_offset + SCTP_SIZE32(ntohs(init_cp->ch.chunk_length));
2163 ntohs(initack_cp->init.num_outbound_streams),
2222 asoc->pre_open_streams = ntohs(initack_cp->init.num_outbound_streams);
2496 cookie_len = ntohs(cp->ch.chunk_length);
3089 len = ntohs(cp->ch.chunk_length);
3549 temp = ntohs(list[i]);
3572 temp = ntohs(list[i]);
3597 temp = ntohs(list[i]);
3645 len = SCTP_SIZE32(ntohs(r->ph.param_length));
3703 type = ntohs(req_param->ph.param_type);
3704 lparam_len = ntohs(req_param->ph.param_length);
3797 if (ntohs(respin->ph.param_length) < sizeof(struct sctp_stream_reset_response_tsn)) {
3873 len = ntohs(req->ph.param_length);
3877 temp = ntohs(req->list_of_streams[i]);
3992 len = ntohs(req->ph.param_length);
4071 num_stream = ntohs(str_add->number_of_streams);
4163 num_stream = ntohs(str_add->number_of_streams);
4226 remaining_length = ntohs(ch_req->chunk_length) - sizeof(struct sctp_chunkhdr);
4270 param_len = ntohs(ph->param_length);
4282 ptype = ntohs(ph->param_type);
4397 chlen = ntohs(cp->ch.chunk_length);
4410 trunc_len = (uint16_t)ntohs(cp->trunc_len);
4419 at = ntohs(ch->chunk_length);
4587 if (ntohs(ch->chunk_length) < sizeof(*ch)) {
4589 ntohs(ch->chunk_length));
4600 ntohs(ch->chunk_length), vtag_in);
4621 auth_len = ntohs(ch->chunk_length);
4654 asconf_len = ntohs(asconf_ch->chunk_length);
4780 chk_length = ntohs(ch->chunk_length);
4979 num_seg = ntohs(sack->sack.num_gap_ack_blks);
4981 num_dup = ntohs(sack->sack.num_dup_tsns);
4996 num_seg = ntohs(nr_sack->nr_sack.num_gap_ack_blks);
4997 num_nr_seg = ntohs(nr_sack->nr_sack.num_nr_gap_ack_blks);
4998 num_dup = ntohs(nr_sack->nr_sack.num_dup_tsns);
5958 length = ntohs(ip->ip_len);
6033 flowid = tag ^ ntohs(sh->dest_port) ^ ntohs(sh->src_port);