Searched refs:ntohs (Results 51 - 75 of 577) sorted by relevance

1234567891011>>

/freebsd-11-stable/sbin/dhclient/
H A Dpacket.c65 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 Dval_utils.c82 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 Dvalidator.c602 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 Dalias_skinny.c65 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 Dalias_pptp.c87 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 Dip_fw_log.c331 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 Dtcp.d191 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 Dsiftr.d78 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 Dyp_access.c242 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 Dt_sockaddr_snprintf.c63 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 Dproxy.c118 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 Dsmpquery.c242 (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 Dvendstat.c469 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 Dibmirror.c334 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 Dserver.c123 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 Dua.h36 # 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 Dh_servent.c43 svp->s_name, ntohs((uint16_t)svp->s_port), svp->s_proto);
/freebsd-11-stable/contrib/ipfilter/lib/
H A Dprintstate.c38 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 Dhttp_server.c50 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 Dhttp_client.c62 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 Drresvport.c104 *alport = ntohs(*portp);
H A Dbindresvport.c91 port = ntohs(*portp);
/freebsd-11-stable/usr.bin/talk/
H A Dctl_transact.c104 rp->addr.sa_family = ntohs(rp->addr.sa_family);
/freebsd-11-stable/tests/sys/netgraph/
H A Dvlan_rotate.c84 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 Dfils_hlp.c26 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...]

Completed in 191 milliseconds

1234567891011>>