Lines Matching refs:ntohs

648 	code = ntohs(code);
1810 b = ntohs(addr->addr16[i]);
1836 printf("[%u]", ntohs(sh->xport.call_id));
1841 printf("[%u]", ntohs(sh->xport.port));
1854 printf("[%u]", ntohs(p));
3198 if (ntohs(sxport->port) == PF_IKE_PORT) {
3610 ((ntohs(dxport->port) -
3611 ntohs(r->dst.xport.range.
4588 len = ntohs(h4->ip_len) - off;
4593 len = ntohs(h6->ip6_plen) -
4632 if (ntohs(pd->hdr.udp->uh_sport) == PF_IKE_PORT &&
4633 ntohs(pd->hdr.udp->uh_dport) == PF_IKE_PORT) {
4727 if (ntohs(uh->uh_sport) == PF_IKE_PORT &&
4728 ntohs(uh->uh_dport) == PF_IKE_PORT &&
4839 s->src.max_win = MAX(ntohs(th->th_win), 1);
4938 ntohs(dport) == PF_PPTP_PORT) {
4965 ntohs(uh->uh_sport) == PF_IKE_PORT &&
4966 ntohs(uh->uh_dport) == PF_IKE_PORT) {
5129 dnflow.fwa_id.dst_port = ntohs(pd->hdr.tcp->th_dport);
5130 dnflow.fwa_id.src_port = ntohs(pd->hdr.tcp->th_sport);
5134 dnflow.fwa_id.dst_port = ntohs(pd->hdr.udp->uh_dport);
5135 dnflow.fwa_id.src_port = ntohs(pd->hdr.udp->uh_sport);
5482 if (ntohs(cm.hdr.type) != 1)
5564 ct = ntohs(cm.ctrl.type);
5658 call_id = ntohs(call_id);
5797 u_int16_t win = ntohs(th->th_win);
5875 (*state)->src.max_win = MAX(ntohs(th->th_win), 1);
5890 (*state)->dst.max_win = MAX(ntohs(th->th_win), 1);
6342 if (ntohs(uh->uh_sport) == PF_IKE_PORT &&
6343 ntohs(uh->uh_dport) == PF_IKE_PORT) {
6862 if (ntohs(uh.uh_sport) == PF_IKE_PORT &&
6863 ntohs(uh.uh_dport) == PF_IKE_PORT) {
7482 u_int16_t fragoff = (ntohs(h->ip_off) & IP_OFFMASK) << 3;
7494 ntohs(h->ip_len) < off + len) {
7507 (ntohs(h->ip6_plen) + sizeof (struct ip6_hdr)) <
7724 (ntohs(ip->ip_len) > 50) &&
7725 (ntohs(ip->ip_len) <= ifp->if_mtu)) {
7761 if (ntohs(ip->ip_len) <= ifp->if_mtu ||
8107 pd.tot_len = ntohs(h->ip_len);
8156 pd.tot_len = ntohs(h->ip_len);
8235 ntohs(uh.uh_ulen) > m->m_pkthdr.len - off ||
8236 ntohs(uh.uh_ulen) < sizeof (struct udphdr)) {
8352 if ((ntohs(grev1.flags) & PF_GRE_FLAG_VERSION_MASK) == 1 &&
8353 ntohs(grev1.protocol_type) == PF_GRE_PPP_ETHERTYPE) {
8354 if (ntohs(grev1.payload_length) >
8645 pd.tot_len = ntohs(h->ip6_plen) + sizeof(struct ip6_hdr);
8697 pd.tot_len = ntohs(h->ip6_plen) + sizeof (struct ip6_hdr);
8829 ntohs(uh.uh_ulen) > m->m_pkthdr.len - off ||
8830 ntohs(uh.uh_ulen) < sizeof (struct udphdr)) {
8947 if ((ntohs(grev1.flags) & PF_GRE_FLAG_VERSION_MASK) == 1 &&
8948 ntohs(grev1.protocol_type) == PF_GRE_PPP_ETHERTYPE) {
8949 if (ntohs(grev1.payload_length) >