Lines Matching refs:htons

1990 			parmh->param_type = htons(SCTP_IPV4_ADDRESS);
1991 parmh->param_length = htons(plen);
2005 parmh->param_type = htons(SCTP_IPV6_ADDRESS);
2006 parmh->param_length = htons(plen);
3721 ph->param_type = htons(SCTP_STATE_COOKIE);
3762 ph->param_length = htons(cookie_sz);
3962 ip->ip_off = htons(IP_DF);
3964 ip->ip_off = htons(0);
3970 ip->ip_len = htons(packet_length);
4037 if (htons(SCTP_BASE_SYSCTL(sctp_udp_tunneling_port)) == 0) {
4044 udp->uh_sport = htons(SCTP_BASE_SYSCTL(sctp_udp_tunneling_port));
4046 udp->uh_ulen = htons(packet_length - sizeof(struct ip));
4048 udp->uh_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr, udp->uh_ulen + htons(IPPROTO_UDP));
4391 if (htons(SCTP_BASE_SYSCTL(sctp_udp_tunneling_port)) == 0) {
4398 udp->uh_sport = htons(SCTP_BASE_SYSCTL(sctp_udp_tunneling_port));
4400 udp->uh_ulen = htons(packet_length - sizeof(struct ip6_hdr));
4627 init->init.num_outbound_streams = htons(stcb->asoc.pre_open_streams);
4628 init->init.num_inbound_streams = htons(stcb->asoc.max_inbound_streams);
4642 sup_addr->ph.param_type = htons(SCTP_SUPPORTED_ADDRTYPE);
4643 sup_addr->ph.param_length = htons(parameter_len);
4646 sup_addr->addr_type[i++] = htons(SCTP_IPV4_ADDRESS);
4649 sup_addr->addr_type[i++] = htons(SCTP_IPV6_ADDRESS);
4663 ali->ph.param_type = htons(SCTP_ULP_ADAPTATION);
4664 ali->ph.param_length = htons(parameter_len);
4677 ph->param_type = htons(SCTP_HAS_NAT_SUPPORT);
4678 ph->param_length = htons(parameter_len);
4692 cookie_preserve->ph.param_type = htons(SCTP_COOKIE_PRESERVE);
4693 cookie_preserve->ph.param_length = htons(parameter_len);
4707 ph->param_type = htons(SCTP_ECN_CAPABLE);
4708 ph->param_length = htons(parameter_len);
4719 ph->param_type = htons(SCTP_PRSCTP_SUPPORTED);
4720 ph->param_length = htons(parameter_len);
4725 pr_supported->ph.param_type = htons(SCTP_SUPPORTED_CHUNK_EXT);
4739 pr_supported->ph.param_length = htons(parameter_len);
4774 hmacs->ph.param_type = htons(SCTP_HMAC_LIST);
4775 hmacs->ph.param_length = htons(parameter_len);
4792 chunks->ph.param_type = htons(SCTP_CHUNK_LIST);
4793 chunks->ph.param_length = htons(parameter_len);
4810 init->ch.chunk_length = htons(chunk_len);
5028 s.param_type = htons(SCTP_CAUSE_UNRESOLVABLE_ADDR);
5029 s.param_length = htons(sizeof(s) + plen);
5092 s.param_type = htons(SCTP_UNRECOG_PARAM);
5093 s.param_length = htons(sizeof(s) + plen);
5165 s.param_type = htons(SCTP_CAUSE_PROTOCOL_VIOLATION);
5166 s.param_length = htons(sizeof(s) + sizeof(struct sctp_paramhdr));
5736 initack->init.num_outbound_streams = htons(i_want);
5740 htons(inp->sctp_ep.max_open_streams_intome);
5745 ali->ph.param_type = htons(SCTP_ULP_ADAPTATION);
5746 ali->ph.param_length = htons(sizeof(*ali));
5757 ecn->ph.param_type = htons(SCTP_ECN_CAPABLE);
5758 ecn->ph.param_length = htons(sizeof(*ecn));
5767 prsctp->ph.param_type = htons(SCTP_PRSCTP_SUPPORTED);
5768 prsctp->ph.param_length = htons(sizeof(*prsctp));
5775 ph->param_type = htons(SCTP_HAS_NAT_SUPPORT);
5776 ph->param_length = htons(sizeof(struct sctp_paramhdr));
5781 pr_supported->ph.param_type = htons(SCTP_SUPPORTED_CHUNK_EXT);
5793 pr_supported->ph.param_length = htons(p_len);
5807 randp->ph.param_type = htons(SCTP_RANDOM);
5809 randp->ph.param_length = htons(p_len);
5821 hmacs->ph.param_type = htons(SCTP_HMAC_LIST);
5822 hmacs->ph.param_length = htons(p_len);
5833 chunks->ph.param_type = htons(SCTP_CHUNK_LIST);
5834 chunks->ph.param_length = htons(p_len);
5921 initack->ch.chunk_length = htons(p_len);
6468 ph->param_type = htons(SCTP_CAUSE_USER_INITIATED_ABT);
6469 ph->param_length = htons(sizeof(struct sctp_paramhdr) + ca->sndlen);
7417 dchkh->dp.stream_id = htons(strq->stream_no);
7418 dchkh->dp.stream_sequence = htons(chk->rec.data.stream_seq);
7420 dchkh->ch.chunk_length = htons(chk->send_size);
8792 hdr->chunk_length = htons(chk->send_size);
8996 hdr->chunk_length = htons(chk->send_size);
9040 ack_cp->ch.chunk_length = htons(chk->send_size);
9083 shutdown_cp->ch.chunk_length = htons(chk->send_size);
10211 fwdtsn->ch.chunk_length = htons(chk->send_size);
10516 gap_descriptor->start = htons((selector->gaps[j].start + offset));
10518 gap_descriptor->end = htons((selector->gaps[j].end + offset));
10592 gap_descriptor->start = htons((selector->gaps[j].start + offset));
10594 gap_descriptor->end = htons((selector->gaps[j].end + offset));
10640 sack->sack.num_gap_ack_blks = htons(num_gap_blocks);
10641 sack->sack.num_dup_tsns = htons(num_dups);
10644 sack->ch.chunk_length = htons(a_chk->send_size);
10652 nr_sack->nr_sack.num_gap_ack_blks = htons(num_gap_blocks);
10653 nr_sack->nr_sack.num_nr_gap_ack_blks = htons(num_nr_gap_blocks);
10654 nr_sack->nr_sack.num_dup_tsns = htons(num_dups);
10658 nr_sack->ch.chunk_length = htons(a_chk->send_size);
10744 abort->ch.chunk_length = htons(chunk_len);
10788 shutdown_complete->ch.chunk_length = htons(sizeof(struct sctp_shutdown_complete_chunk));
10944 if (htons(SCTP_BASE_SYSCTL(sctp_udp_tunneling_port)) == 0) {
10949 udp->uh_sport = htons(SCTP_BASE_SYSCTL(sctp_udp_tunneling_port));
10952 udp->uh_ulen = htons(sizeof(struct udphdr) +
10977 ch->chunk_length = htons(sizeof(struct sctp_chunkhdr) + cause_len);
10991 udp->uh_sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr, udp->uh_ulen + htons(IPPROTO_UDP));
10996 ip->ip_len = htons(len);
11134 hb->ch.chunk_length = htons(chk->send_size);
11136 hb->heartbeat.hb_info.ph.param_type = htons(SCTP_HEARTBEAT_INFO);
11137 hb->heartbeat.hb_info.ph.param_length = htons(sizeof(struct sctp_heartbeat_info_param));
11237 ecne->ch.chunk_length = htons(sizeof(struct sctp_ecne_chunk));
11338 drp->trunc_len = htons(fullsz);
11348 drp->trunc_len = htons(0);
11367 drp->ch.chunk_length = htons(chk->send_size);
11447 cwr->ch.chunk_length = htons(sizeof(struct sctp_cwr_chunk));
11469 req_out->ph.param_type = htons(SCTP_STR_RESET_OUT_REQUEST);
11470 req_out->ph.param_length = htons(len);
11476 req_out->list_of_streams[i] = htons(list[i]);
11488 ch->chunk_length = htons(len + old_len);
11512 req_in->ph.param_type = htons(SCTP_STR_RESET_IN_REQUEST);
11513 req_in->ph.param_length = htons(len);
11517 req_in->list_of_streams[i] = htons(list[i]);
11529 ch->chunk_length = htons(len + old_len);
11552 req_tsn->ph.param_type = htons(SCTP_STR_RESET_TSN_REQUEST);
11553 req_tsn->ph.param_length = htons(len);
11557 ch->chunk_length = htons(len + old_len);
11580 resp->ph.param_type = htons(SCTP_STR_RESET_RESPONSE);
11581 resp->ph.param_length = htons(len);
11586 ch->chunk_length = htons(len + old_len);
11610 resp->ph.param_type = htons(SCTP_STR_RESET_RESPONSE);
11611 resp->ph.param_length = htons(len);
11618 ch->chunk_length = htons(len + old_len);
11644 addstr->ph.param_type = htons(SCTP_STR_RESET_ADD_OUT_STREAMS);
11645 addstr->ph.param_length = htons(len);
11647 addstr->number_of_streams = htons(adding);
11651 ch->chunk_length = htons(len + old_len);
11676 addstr->ph.param_type = htons(SCTP_STR_RESET_ADD_IN_STREAMS);
11677 addstr->ph.param_length = htons(len);
11679 addstr->number_of_streams = htons(adding);
11683 ch->chunk_length = htons(len + old_len);
11759 ch->chunk_length = htons(chk->book_size);
12524 ph->param_type = htons(SCTP_CAUSE_USER_INITIATED_ABT);
12525 ph->param_length = htons(sizeof(struct sctp_paramhdr) + tot_out);
13299 auth->ch.chunk_length = htons(chunk_len);
13300 auth->hmac_id = htons(stcb->asoc.peer_hmac_id);