Lines Matching refs:htons

1991 			paramh->param_type = htons(SCTP_IPV4_ADDRESS);
1992 paramh->param_length = htons(plen);
2006 paramh->param_type = htons(SCTP_IPV6_ADDRESS);
2007 paramh->param_length = htons(plen);
3868 ph->param_type = htons(SCTP_STATE_COOKIE);
3909 ph->param_length = htons(cookie_sz);
4097 ip->ip_off = htons(IP_DF);
4099 ip->ip_off = htons(0);
4105 ip->ip_len = htons(packet_length);
4172 if (htons(SCTP_BASE_SYSCTL(sctp_udp_tunneling_port)) == 0) {
4179 udp->uh_sport = htons(SCTP_BASE_SYSCTL(sctp_udp_tunneling_port));
4181 udp->uh_ulen = htons((uint16_t)(packet_length - sizeof(struct ip)));
4183 udp->uh_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr, udp->uh_ulen + htons(IPPROTO_UDP));
4405 ip6h->ip6_plen = htons((uint16_t)(packet_length - sizeof(struct ip6_hdr)));
4517 if (htons(SCTP_BASE_SYSCTL(sctp_udp_tunneling_port)) == 0) {
4524 udp->uh_sport = htons(SCTP_BASE_SYSCTL(sctp_udp_tunneling_port));
4526 udp->uh_ulen = htons((uint16_t)(packet_length - sizeof(struct ip6_hdr)));
4746 init->init.num_outbound_streams = htons(stcb->asoc.pre_open_streams);
4747 init->init.num_inbound_streams = htons(stcb->asoc.max_inbound_streams);
4754 ali->ph.param_type = htons(SCTP_ULP_ADAPTATION);
4755 ali->ph.param_length = htons(parameter_len);
4764 ph->param_type = htons(SCTP_ECN_CAPABLE);
4765 ph->param_length = htons(parameter_len);
4773 ph->param_type = htons(SCTP_PRSCTP_SUPPORTED);
4774 ph->param_length = htons(parameter_len);
4782 ph->param_type = htons(SCTP_HAS_NAT_SUPPORT);
4783 ph->param_length = htons(parameter_len);
4817 pr_supported->ph.param_type = htons(SCTP_SUPPORTED_CHUNK_EXT);
4818 pr_supported->ph.param_length = htons(parameter_len);
4852 hmacs->ph.param_type = htons(SCTP_HMAC_LIST);
4853 hmacs->ph.param_length = htons(parameter_len);
4870 chunks->ph.param_type = htons(SCTP_CHUNK_LIST);
4871 chunks->ph.param_length = htons(parameter_len);
4889 cookie_preserve->ph.param_type = htons(SCTP_COOKIE_PRESERVE);
4890 cookie_preserve->ph.param_length = htons(parameter_len);
4912 sup_addr->ph.param_type = htons(SCTP_SUPPORTED_ADDRTYPE);
4913 sup_addr->ph.param_length = htons(parameter_len);
4916 sup_addr->addr_type[i++] = htons(SCTP_IPV4_ADDRESS);
4919 sup_addr->addr_type[i++] = htons(SCTP_IPV6_ADDRESS);
4937 init->ch.chunk_length = htons(chunk_len);
5153 cause->code = htons(SCTP_CAUSE_UNRESOLVABLE_ADDR);
5154 cause->length = htons((uint16_t)(sizeof(struct sctp_gen_error_cause) + plen));
5225 param->param_type = htons(SCTP_UNRECOG_PARAM);
5226 param->param_length = htons((uint16_t)sizeof(struct sctp_paramhdr) + plen);
5289 param->param_type = htons(SCTP_CAUSE_PROTOCOL_VIOLATION);
5290 param->param_length = htons(2 * sizeof(struct sctp_paramhdr));
5292 param->param_type = htons(ptype);
5293 param->param_length = htons(plen);
5916 initack->init.num_outbound_streams = htons(i_want);
5920 htons(inp->sctp_ep.max_open_streams_intome);
5926 ali->ph.param_type = htons(SCTP_ULP_ADAPTATION);
5927 ali->ph.param_length = htons(parameter_len);
5937 ph->param_type = htons(SCTP_ECN_CAPABLE);
5938 ph->param_length = htons(parameter_len);
5947 ph->param_type = htons(SCTP_PRSCTP_SUPPORTED);
5948 ph->param_length = htons(parameter_len);
5956 ph->param_type = htons(SCTP_HAS_NAT_SUPPORT);
5957 ph->param_length = htons(parameter_len);
5999 pr_supported->ph.param_type = htons(SCTP_SUPPORTED_CHUNK_EXT);
6000 pr_supported->ph.param_length = htons(parameter_len);
6021 randp->ph.param_type = htons(SCTP_RANDOM);
6022 randp->ph.param_length = htons(parameter_len);
6037 hmacs->ph.param_type = htons(SCTP_HMAC_LIST);
6038 hmacs->ph.param_length = htons(parameter_len);
6052 chunks->ph.param_type = htons(SCTP_CHUNK_LIST);
6053 chunks->ph.param_length = htons(parameter_len);
6129 initack->ch.chunk_length = htons(chunk_len);
6674 ph->param_type = htons(SCTP_CAUSE_USER_INITIATED_ABT);
6675 ph->param_length = htons((uint16_t)(sizeof(struct sctp_paramhdr) + ca->sndlen));
7637 dchkh->dp.sid = htons(strq->sid);
7638 dchkh->dp.ssn = htons((uint16_t)chk->rec.data.mid);
7640 dchkh->ch.chunk_length = htons(chk->send_size);
7645 ndchkh->dp.sid = htons(strq->sid);
7646 ndchkh->dp.reserved = htons(0);
7653 ndchkh->ch.chunk_length = htons(chk->send_size);
9010 hdr->chunk_length = htons(chk->send_size);
9198 hdr->chunk_length = htons(chk->send_size);
9242 ack_cp->ch.chunk_length = htons(chk->send_size);
9296 shutdown_cp->ch.chunk_length = htons(chk->send_size);
10470 fwdtsn->ch.chunk_length = htons(chk->send_size);
10516 strseq_m->sid = htons(at->rec.data.sid);
10518 strseq_m->flags = htons(PR_SCTP_UNORDERED_FLAG);
10525 strseq->sid = htons(at->rec.data.sid);
10526 strseq->ssn = htons((uint16_t)at->rec.data.mid);
10780 gap_descriptor->start = htons((selector->gaps[j].start + offset));
10782 gap_descriptor->end = htons((selector->gaps[j].end + offset));
10856 gap_descriptor->start = htons((selector->gaps[j].start + offset));
10858 gap_descriptor->end = htons((selector->gaps[j].end + offset));
10904 sack->sack.num_gap_ack_blks = htons(num_gap_blocks);
10905 sack->sack.num_dup_tsns = htons(num_dups);
10908 sack->ch.chunk_length = htons(a_chk->send_size);
10916 nr_sack->nr_sack.num_gap_ack_blks = htons(num_gap_blocks);
10917 nr_sack->nr_sack.num_nr_gap_ack_blks = htons(num_nr_gap_blocks);
10918 nr_sack->nr_sack.num_dup_tsns = htons(num_dups);
10922 nr_sack->ch.chunk_length = htons(a_chk->send_size);
11009 abort->ch.chunk_length = htons(chunk_len);
11063 shutdown_complete->ch.chunk_length = htons(sizeof(struct sctp_shutdown_complete_chunk));
11181 ip->ip_off = htons(IP_DF);
11224 if (htons(SCTP_BASE_SYSCTL(sctp_udp_tunneling_port)) == 0) {
11229 udp->uh_sport = htons(SCTP_BASE_SYSCTL(sctp_udp_tunneling_port));
11232 udp->uh_ulen = htons((uint16_t)(sizeof(struct udphdr) +
11258 ch->chunk_length = htons((uint16_t)(sizeof(struct sctp_chunkhdr) + cause_len));
11272 udp->uh_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr, udp->uh_ulen + htons(IPPROTO_UDP));
11277 ip->ip_len = htons(len);
11299 ip6->ip6_plen = htons((uint16_t)(len - sizeof(struct ip6_hdr)));
11408 hb->ch.chunk_length = htons(chk->send_size);
11410 hb->heartbeat.hb_info.ph.param_type = htons(SCTP_HEARTBEAT_INFO);
11411 hb->heartbeat.hb_info.ph.param_length = htons(sizeof(struct sctp_heartbeat_info_param));
11517 ecne->ch.chunk_length = htons(sizeof(struct sctp_ecne_chunk));
11621 drp->trunc_len = htons(fullsz);
11631 drp->trunc_len = htons(0);
11648 drp->ch.chunk_length = htons(chk->send_size);
11729 cwr->ch.chunk_length = htons(sizeof(struct sctp_cwr_chunk));
11767 req_out->ph.param_type = htons(SCTP_STR_RESET_OUT_REQUEST);
11768 req_out->ph.param_length = htons(len);
11778 req_out->list_of_streams[at] = htons(i);
11800 ch->chunk_length = htons(len + old_len);
11824 req_in->ph.param_type = htons(SCTP_STR_RESET_IN_REQUEST);
11825 req_in->ph.param_length = htons(len);
11829 req_in->list_of_streams[i] = htons(list[i]);
11841 ch->chunk_length = htons(len + old_len);
11864 req_tsn->ph.param_type = htons(SCTP_STR_RESET_TSN_REQUEST);
11865 req_tsn->ph.param_length = htons(len);
11869 ch->chunk_length = htons(len + old_len);
11892 resp->ph.param_type = htons(SCTP_STR_RESET_RESPONSE);
11893 resp->ph.param_length = htons(len);
11898 ch->chunk_length = htons(len + old_len);
11957 ch->chunk_length = htons(chk->book_size);
11984 resp->ph.param_type = htons(SCTP_STR_RESET_RESPONSE);
11985 resp->ph.param_length = htons(len);
11992 ch->chunk_length = htons(len + old_len);
12018 addstr->ph.param_type = htons(SCTP_STR_RESET_ADD_OUT_STREAMS);
12019 addstr->ph.param_length = htons(len);
12021 addstr->number_of_streams = htons(adding);
12025 ch->chunk_length = htons(len + old_len);
12050 addstr->ph.param_type = htons(SCTP_STR_RESET_ADD_IN_STREAMS);
12051 addstr->ph.param_length = htons(len);
12053 addstr->number_of_streams = htons(adding);
12057 ch->chunk_length = htons(len + old_len);
12110 ch->chunk_length = htons(chk->book_size);
12214 ch->chunk_length = htons(chk->book_size);
13032 ph->param_type = htons(SCTP_CAUSE_USER_INITIATED_ABT);
13033 ph->param_length = htons((uint16_t)(sizeof(struct sctp_paramhdr) + tot_out));
13829 auth->ch.chunk_length = htons(chunk_len);
13830 auth->hmac_id = htons(stcb->asoc.peer_hmac_id);