/freebsd-11-stable/sbin/dhclient/ |
H A D | packet.c | 65 sum += (u_int16_t)ntohs(*((u_int16_t *)(buf + i))); 141 IPPROTO_UDP + (u_int32_t)ntohs(udp.uh_ulen))))); 193 if (ntohs(ip->ip_len) != buflen) 195 ntohs(ip->ip_len), buflen); 206 len = ntohs(udp->uh_ulen) - sizeof(*udp); 231 IPPROTO_UDP + (u_int32_t)ntohs(udp->uh_ulen)))));
|
/freebsd-11-stable/contrib/unbound/validator/ |
H A D | val_utils.c | 82 if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_SOA) 84 if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_DS) 86 if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NS) 94 ntohs(rep->rrsets[0]->rk.type) == LDNS_RR_TYPE_NS && 122 ntohs(rep->rrsets[i]->rk.type) == qinf->qtype) 124 if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_CNAME) 242 if(ntohs(rep->rrsets[i]->rk.type) != LDNS_RR_TYPE_DNAME) 252 if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NSEC 253 || ntohs(rep->rrsets[i]->rk.type) == 268 if(ntohs(re [all...] |
H A D | validator.c | 602 if(dname_seen && ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME) { 621 ntohs(s->rk.type), ntohs(s->rk.rrset_class)); 623 if(ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME) 625 else if(ntohs(s->rk.type) == LDNS_RR_TYPE_DNAME) 635 ntohs(s->rk.type) == LDNS_RR_TYPE_DNAME) { 651 ntohs(s->rk.type), ntohs(s->rk.rrset_class)); 697 if(ntohs(rep->rrsets[ rep->an_numrrsets ]->rk.type) != LDNS_RR_TYPE_NS) 741 if(ntohs(chase_repl [all...] |
/freebsd-11-stable/sys/netinet/libalias/ |
H A D | alias_skinny.c | 65 if (la->skinnyPort != 0 && (ntohs(*ah->sport) == la->skinnyPort || 66 ntohs(*ah->dport) == la->skinnyPort)) 259 port_msg->stationIpPort = (u_int32_t) ntohs(GetAliasPort(lnk)); 291 opnrcvch_ack->port = (u_int32_t) ntohs(GetAliasPort(opnrcv_lnk)); 315 tlen = ntohs(pip->ip_len); 325 if (ntohs(tc->th_dport) == la->skinnyPort) { 327 } else if (ntohs(tc->th_sport) == la->skinnyPort) {
|
H A D | alias_pptp.c | 87 if (ntohs(*ah->dport) == PPTP_CONTROL_PORT_NUMBER 88 || ntohs(*ah->sport) == PPTP_CONTROL_PORT_NUMBER) 447 tlen = ntohs(pip->ip_len); 458 *ptype = ntohs(hptr->type); 461 if ((ntohs(hptr->msgType) != PPTP_CTRL_MSG_TYPE) ||
|
/freebsd-11-stable/sys/netpfil/ipfw/ |
H A D | ip_fw_log.c | 331 ntohs(tcp->th_sport), 333 ntohs(tcp->th_dport)); 345 ntohs(udp->uh_sport), 347 ntohs(udp->uh_dport)); 389 ntohs(ip6->ip6_plen) - hlen, 390 ntohs(offset) << 3, ip6f_mf ? "+" : ""); 395 ipoff = ntohs(ip->ip_off); 396 iplen = ntohs(ip->ip_len); 400 ntohs(ip->ip_id), iplen - (ip->ip_hl << 2),
|
/freebsd-11-stable/cddl/lib/libdtrace/ |
H A D | tcp.d | 191 tcps_lport = p == NULL ? 0 : ntohs(p->t_inpcb->inp_inc.inc_ie.ie_lport); 192 tcps_rport = p == NULL ? 0 : ntohs(p->t_inpcb->inp_inc.inc_ie.ie_fport); 238 tcp_sport = p == NULL ? 0 : ntohs(p->th_sport); 239 tcp_dport = p == NULL ? 0 : ntohs(p->th_dport); 244 tcp_window = p == NULL ? 0 : ntohs(p->th_win); 245 tcp_checksum = p == NULL ? 0 : ntohs(p->th_sum); 246 tcp_urgent = p == NULL ? 0 : ntohs(p->th_urp); 257 tcp_sport = p == NULL ? 0 : ntohs(p->th_sport); 258 tcp_dport = p == NULL ? 0 : ntohs(p->th_dport); 264 tcp_checksum = p == NULL ? 0 : ntohs( [all...] |
H A D | siftr.d | 78 tcp_localport = p == NULL ? 0 : ntohs(p->tcp_localport); 79 tcp_foreignport = p == NULL ? 0 : ntohs(p->tcp_foreignport);
|
/freebsd-11-stable/usr.sbin/ypserv/ |
H A D | yp_access.c | 242 ntohs(rqhost->sin_port)); 253 ntohs(rqhost->sin_port)); 265 ntohs(rqhost->sin_port) >= IPPORT_RESERVED) { 267 not privileged", map, inet_ntoa(rqhost->sin_addr), ntohs(rqhost->sin_port)); 304 ntohs(rqhost->sin_port),
|
/freebsd-11-stable/contrib/netbsd-tests/lib/libutil/ |
H A D | t_sockaddr_snprintf.c | 63 sin4.sin_port = ntohs(80); 88 sin6.sin6_port = ntohs(80); 138 sat.sat_addr.s_net = ntohs(101);
|
/freebsd-11-stable/contrib/ipfilter/samples/ |
H A D | proxy.c | 118 inet_ntoa(natlook.nl_realip), ntohs(natlook.nl_realport)); 120 inet_ntoa(natlook.nl_realip), ntohs(natlook.nl_realport)); 180 printf("local port# to use: %d\n", ntohs(usin.sin_port)); 186 sum1 = LONG_SUM(ntohl(usin.sin_addr.s_addr)) + ntohs(usin.sin_port); 187 sum2 = LONG_SUM(ntohl(nat->nat_outip.s_addr)) + ntohs(nlp->nl_outport); 221 ntohs(usin.sin_port));
|
/freebsd-11-stable/contrib/ofed/infiniband-diags/src/ |
H A D | smpquery.c | 242 (i * 32) + j, ntohs(p[0]), ntohs(p[1]), 243 ntohs(p[2]), ntohs(p[3]), ntohs(p[4]), ntohs(p[5]), 244 ntohs(p[6]), ntohs(p[7]));
|
H A D | vendstat.c | 469 if (is_ext_fw_info_supported(ntohs(gi_is3->hw_info.device_id))) { 488 printf("hw_dev_rev: 0x%04x\n", ntohs(gi_is3->hw_info.hw_revision)); 489 printf("hw_dev_id: 0x%04x\n", ntohs(gi_is3->hw_info.device_id)); 496 ntohs(gi_is3->fw_info.year)); 508 if (ntohs(gi_is3->hw_info.device_id) != IS3_DEVICE_ID) { 511 ntohs(gi_is3->hw_info.device_id));
|
H A D | ibmirror.c | 334 ntohs(local_lossy_cfg.ignore_buffer_mask), ntohs(local_lossy_cfg.ignore_credit_mask)); 337 ntohs(peer_lossy_cfg.ignore_buffer_mask), ntohs(peer_lossy_cfg.ignore_credit_mask)); 491 if (ntohs(gi->hw_info.device_id) != 0x1b3) 492 IBEXIT("device id 0x%x does not support mirroring", ntohs(gi->hw_info.device_id));
|
/freebsd-11-stable/usr.sbin/ppp/ |
H A D | server.c | 123 if (ntohs(sin->sin_port) < 1024) { 126 ncpaddr_ntoa(&addr), ntohs(sin->sin_port)); 132 ncpaddr_ntoa(&addr), ntohs(sin->sin_port)); 138 if (ntohs(sin6->sin6_port) < 1024) { 141 ncpaddr_ntoa(&addr), ntohs(sin6->sin6_port)); 147 ncpaddr_ntoa(&addr), ntohs(sin6->sin6_port)); 172 ncpaddr_ntoa(&addr), ntohs(sin->sin_port)); 178 ncpaddr_ntoa(&addr), ntohs(sin6->sin6_port));
|
H A D | ua.h | 36 # define ua_ntohs(src, tgt) (*(u_int16_t *)(tgt) = ntohs(*(u_int16_t *)(src)))
|
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/net/ |
H A D | h_servent.c | 43 svp->s_name, ntohs((uint16_t)svp->s_port), svp->s_proto);
|
/freebsd-11-stable/contrib/ipfilter/lib/ |
H A D | printstate.c | 38 PRINTF(",%d", ntohs(sp->is_sport)); 46 PRINTF(",%d", ntohs(sp->is_dport)); 82 PRINTF("\tcall %hx/%hx\n", ntohs(sp->is_gre.gs_call[0]), 83 ntohs(sp->is_gre.gs_call[1]));
|
/freebsd-11-stable/contrib/wpa/src/wps/ |
H A D | http_server.c | 50 ntohs(req->cli.sin_port)); 56 ntohs(req->cli.sin_port)); 139 ntohs(req->cli.sin_port)); 214 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port));
|
H A D | http_client.c | 62 ntohs(c->dst.sin_port)); 68 ntohs(c->dst.sin_port)); 93 inet_ntoa(c->dst.sin_addr), ntohs(c->dst.sin_port), 116 inet_ntoa(c->dst.sin_addr), ntohs(c->dst.sin_port)); 270 ntohs(dst.sin_port));
|
/freebsd-11-stable/crypto/openssh/openbsd-compat/ |
H A D | rresvport.c | 104 *alport = ntohs(*portp);
|
H A D | bindresvport.c | 91 port = ntohs(*portp);
|
/freebsd-11-stable/usr.bin/talk/ |
H A D | ctl_transact.c | 104 rp->addr.sa_family = ntohs(rp->addr.sa_family);
|
/freebsd-11-stable/tests/sys/netgraph/ |
H A D | vlan_rotate.c | 84 v[i] = EVL_VLANOFTAG(ntohs(f->vlan[i].tag)); 168 v[i] = ntohs(f->vlan[i].proto); 226 ATF_CHECK_MSG(r[i] == ntohs(vlan[expect]), 228 len, rot, i, ntohs(r[i]), expect, vlan[expect]);
|
/freebsd-11-stable/contrib/wpa/src/ap/ |
H A D | fils_hlp.c | 26 sum += ntohs(*pos++); 28 sum += ntohs(*pos << 8); 142 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port)); 176 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port), (int) res); 460 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port), 490 sport = ntohs(udph->uh_sport); 491 dport = ntohs(udph->uh_dport); 492 ulen = ntohs(udph->uh_ulen); 495 sport, dport, ulen, ntohs(udph->uh_sum)); 524 tot_len = ntohs(ip [all...] |