Home | History | Annotate | Download | only in netinet

Lines Matching refs:NTOHS

116 	if (ntohs(cp->ch.chunk_length) < sizeof(struct sctp_init_chunk)) {
184 if (asoc->pre_open_streams > ntohs(init->num_inbound_streams)) {
190 newcnt = ntohs(init->num_inbound_streams);
223 asoc->streamincnt = ntohs(init->num_outbound_streams);
334 initack_limit = offset + ntohs(cp->ch.chunk_length);
411 if (ntohs(cp->ch.chunk_length) != sizeof(struct sctp_heartbeat_chunk)) {
528 if (ntohs(cp->ch.chunk_length) != sizeof(struct sctp_shutdown_chunk)) {
533 ntohs
717 switch (ntohs(pbad->param_type)) {
774 chklen = ntohs(ch->chunk_length) - sizeof(struct sctp_chunkhdr);
777 error_type = ntohs(phdr->param_type);
778 error_len = ntohs(phdr->param_length);
910 if (ntohs(cp->ch.chunk_length) < sizeof(struct sctp_init_ack_chunk)) {
1102 chk_length = ntohs(init_cp->ch.chunk_length);
1129 chk_length = ntohs(initack_cp->ch.chunk_length);
1266 ntohs(initack_cp->init.num_outbound_streams);
1341 ntohs(initack_cp->init.num_outbound_streams);
1443 chk_length = ntohs(init_cp->ch.chunk_length);
1470 chk_length = ntohs(initack_cp->ch.chunk_length);
1530 asoc->pre_open_streams = ntohs(initack_cp->init.num_outbound_streams);
1728 cookie_len = ntohs(cp->ch.chunk_length);
2225 if (ntohs(cp->ch.chunk_length) != sizeof(struct sctp_ecne_chunk)) {
2609 temp = ntohs(list[i]);
2641 if (strreq->sr_req.ph.param_type == ntohs(SCTP_STR_RESET_RESPONSE)) {
2644 } else if (strreq->sr_req.ph.param_type != ntohs(SCTP_STR_RESET_REQUEST)) {
2646 (u_int)ntohs(strreq->sr_req.ph.param_type));
2677 param_length = ntohs(resp->ph.param_length);
2729 chk_length = ntohs(sr_req->ch.chunk_length);
2733 param_len = ntohs(ph->param_length);
2734 if (ntohs(ph->param_type) == SCTP_STR_RESET_REQUEST) {
2738 } else if (ntohs(ph->param_type) == SCTP_STR_RESET_RESPONSE) {
2771 chlen = ntohs(cp->ch.chunk_length);
2820 trunc_len = (u_int16_t)ntohs(cp->trunc_len);
2825 at = ntohs(ch->chunk_length);
3051 if (ntohs(ch->chunk_length) < sizeof(*ch)) {
3174 chk_length = ntohs(ch->chunk_length);
4171 NTOHS(ip->ip_len);