Lines Matching refs:ntohs

661 	code = ntohs(code);
1830 b = ntohs(addr->addr16[i]);
1856 printf("[%u]", ntohs(sh->xport.call_id));
1861 printf("[%u]", ntohs(sh->xport.port));
1874 printf("[%u]", ntohs(p));
3237 if (ntohs(sxport->port) == PF_IKE_PORT) {
3655 ((ntohs(dxport->port) -
3656 ntohs(r->dst.xport.range.
4634 len = ntohs(h4->ip_len) - off;
4639 len = ntohs(h6->ip6_plen) -
4678 if (ntohs(pd->hdr.udp->uh_sport) == PF_IKE_PORT &&
4679 ntohs(pd->hdr.udp->uh_dport) == PF_IKE_PORT) {
4779 if (ntohs(uh->uh_sport) == PF_IKE_PORT &&
4780 ntohs(uh->uh_dport) == PF_IKE_PORT &&
4891 s->src.max_win = MAX(ntohs(th->th_win), 1);
4990 ntohs(dport) == PF_PPTP_PORT) {
5017 ntohs(uh->uh_sport) == PF_IKE_PORT &&
5018 ntohs(uh->uh_dport) == PF_IKE_PORT) {
5181 dnflow.fwa_id.dst_port = ntohs(pd->hdr.tcp->th_dport);
5182 dnflow.fwa_id.src_port = ntohs(pd->hdr.tcp->th_sport);
5186 dnflow.fwa_id.dst_port = ntohs(pd->hdr.udp->uh_dport);
5187 dnflow.fwa_id.src_port = ntohs(pd->hdr.udp->uh_sport);
5536 if (ntohs(cm.hdr.type) != 1)
5619 ct = ntohs(cm.ctrl.type);
5713 call_id = ntohs(call_id);
5852 u_int16_t win = ntohs(th->th_win);
5930 (*state)->src.max_win = MAX(ntohs(th->th_win), 1);
5945 (*state)->dst.max_win = MAX(ntohs(th->th_win), 1);
6401 if (ntohs(uh->uh_sport) == PF_IKE_PORT &&
6402 ntohs(uh->uh_dport) == PF_IKE_PORT) {
6927 if (ntohs(uh.uh_sport) == PF_IKE_PORT &&
6928 ntohs(uh.uh_dport) == PF_IKE_PORT) {
7559 u_int16_t fragoff = (ntohs(h->ip_off) & IP_OFFMASK) << 3;
7571 ntohs(h->ip_len) < off + len) {
7584 (ntohs(h->ip6_plen) + sizeof (struct ip6_hdr)) <
7787 ip_output_checksum(ifp, m0, ((ip->ip_hl) << 2), ntohs(ip->ip_len),
7790 if (ntohs(ip->ip_len) <= ifp->if_mtu || TSO_IPV4_OK(ifp, m0) ||
8140 pd.tot_len = ntohs(h->ip_len);
8189 pd.tot_len = ntohs(h->ip_len);
8269 ntohs(uh.uh_ulen) > m->m_pkthdr.len - off ||
8270 ntohs(uh.uh_ulen) < sizeof (struct udphdr)) {
8386 if ((ntohs(grev1.flags) & PF_GRE_FLAG_VERSION_MASK) == 1 &&
8387 ntohs(grev1.protocol_type) == PF_GRE_PPP_ETHERTYPE) {
8388 if (ntohs(grev1.payload_length) >
8675 pd.tot_len = ntohs(h->ip6_plen) + sizeof(struct ip6_hdr);
8727 pd.tot_len = ntohs(h->ip6_plen) + sizeof (struct ip6_hdr);
8859 ntohs(uh.uh_ulen) > m->m_pkthdr.len - off ||
8860 ntohs(uh.uh_ulen) < sizeof (struct udphdr)) {
8977 if ((ntohs(grev1.flags) & PF_GRE_FLAG_VERSION_MASK) == 1 &&
8978 ntohs(grev1.protocol_type) == PF_GRE_PPP_ETHERTYPE) {
8979 if (ntohs(grev1.payload_length) >