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

1234567891011>>

/freebsd-current/share/examples/ipfilter/samples/
H A Dproxy.c117 inet_ntoa(natlook.nl_realip), ntohs(natlook.nl_realport));
119 inet_ntoa(natlook.nl_realip), ntohs(natlook.nl_realport));
179 printf("local port# to use: %d\n", ntohs(usin.sin_port));
185 sum1 = LONG_SUM(ntohl(usin.sin_addr.s_addr)) + ntohs(usin.sin_port);
186 sum2 = LONG_SUM(ntohl(nat->nat_outip.s_addr)) + ntohs(nlp->nl_outport);
220 ntohs(usin.sin_port));
/freebsd-current/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 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));
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));
/freebsd-current/contrib/tcpdump/
H A Dnetdissect-stdinc.h293 #undef ntohs macro
301 #define ntohs(x) __ntohs(x) macro
/freebsd-current/tests/sys/netinet/libalias/
H A D2_natout.c145 aport = ntohs(uo->uh_sport);
187 aport = ntohs(u->uh_sport);
219 aport = ntohs(uo->uh_sport);
325 aport = ntohs(uo->uh_sport);
332 aport = ntohs(uo->uh_sport);
339 aport = ntohs(uo->uh_sport);
344 aport = ntohs(uo->uh_sport);
355 aport = ntohs(uo->uh_sport);
/freebsd-current/cddl/lib/libdtrace/
H A Dsctp.d137 ntohs(p->sctp_ep->ip_inp.inp.inp_inc.inc_ie.ie_lport);
138 sctps_rport = p == NULL ? 0 : ntohs(p->rport);
159 sctp_sport = p == NULL ? 0 : ntohs(p->src_port);
160 sctp_dport = p == NULL ? 0 : ntohs(p->dest_port);
/freebsd-current/usr.sbin/ppp/
H A Dserver.c121 if (ntohs(sin->sin_port) < 1024) {
124 ncpaddr_ntoa(&addr), ntohs(sin->sin_port));
130 ncpaddr_ntoa(&addr), ntohs(sin->sin_port));
136 if (ntohs(sin6->sin6_port) < 1024) {
139 ncpaddr_ntoa(&addr), ntohs(sin6->sin6_port));
145 ncpaddr_ntoa(&addr), ntohs(sin6->sin6_port));
170 ncpaddr_ntoa(&addr), ntohs(sin->sin_port));
176 ncpaddr_ntoa(&addr), ntohs(sin6->sin6_port));
H A Dua.h34 # define ua_ntohs(src, tgt) (*(u_int16_t *)(tgt) = ntohs(*(u_int16_t *)(src)))
/freebsd-current/crypto/openssh/openbsd-compat/
H A Drresvport.c104 *alport = ntohs(*portp);
H A Dbindresvport.c92 port = ntohs(*portp);
/freebsd-current/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-current/contrib/netbsd-tests/lib/libc/net/
H A Dh_servent.c43 svp->s_name, ntohs((uint16_t)svp->s_port), svp->s_proto);
/freebsd-current/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-current/sbin/ipf/libipf/
H A Dprintstate.c34 PRINTF(",%d", ntohs(sp->is_sport));
42 PRINTF(",%d", ntohs(sp->is_dport));
78 PRINTF("\tcall %hx/%hx\n", ntohs(sp->is_gre.gs_call[0]),
79 ntohs(sp->is_gre.gs_call[1]));
H A Dprintstatefields.c230 PRINTF("%hu", ntohs(sp->is_sport));
234 PRINTF("%hu", ntohs(sp->is_dport));
/freebsd-current/usr.bin/talk/
H A Dctl_transact.c100 rp->addr.sa_family = ntohs(rp->addr.sa_family);
/freebsd-current/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 ip_len = ntohs(ip
[all...]
/freebsd-current/sys/netinet/libalias/
H A Dalias_pptp.c84 if (ntohs(*ah->dport) == PPTP_CONTROL_PORT_NUMBER
85 || ntohs(*ah->sport) == PPTP_CONTROL_PORT_NUMBER)
438 tlen = ntohs(pip->ip_len);
449 *ptype = ntohs(hptr->type);
452 if ((ntohs(hptr->msgType) != PPTP_CTRL_MSG_TYPE) ||
/freebsd-current/sys/net/
H A Ddebugnet_inet.c154 ip->ip_len = ntohs(ip->ip_len);
174 ip->ip_off = ntohs(ip->ip_off);
301 if (ntohs(ah->ar_hrd) != ARPHRD_ETHER) {
306 if (ntohs(ah->ar_pro) != ETHERTYPE_IP) {
308 ntohs(ah->ar_pro));
322 op = ntohs(ah->ar_op);
H A Dieee8023ad_lacp.c449 ntohs(mdu->mdu_info.mi_rq_port), mdu->mdu_info.mi_rq_system, ":",
622 req->actor_prio = ntohs(la->la_actor.lip_systemid.lsi_prio);
625 req->actor_key = ntohs(la->la_actor.lip_key);
626 req->actor_portprio = ntohs(la->la_actor.lip_portid.lpi_prio);
627 req->actor_portno = ntohs(la->la_actor.lip_portid.lpi_portno);
630 req->partner_prio = ntohs(la->la_partner.lip_systemid.lsi_prio);
633 req->partner_key = ntohs(la->la_partner.lip_key);
634 req->partner_portprio = ntohs(la->la_partner.lip_portid.lpi_prio);
635 req->partner_portno = ntohs(la->la_partner.lip_portid.lpi_portno);
649 req->actor_prio = ntohs(l
[all...]
/freebsd-current/contrib/wpa/wpa_supplicant/
H A Dctrl_iface_udp.c101 ntohs(from->sin6_port));
104 inet_ntoa(from->sin_addr), ntohs(from->sin_port));
132 ntohs(from->sin6_port));
138 ntohs(from->sin_port));
179 ntohs(from->sin6_port));
185 ntohs(from->sin_port));
561 ntohs(dst->addr.sin6_port));
565 ntohs(dst->addr.sin_port));
/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/aggs/
H A Dtst.subr.d95 INTFUNC(ntohs(0x1234))
/freebsd-current/contrib/ntp/sntp/libevent/test/
H A Dregress_testutils.c85 return ntohs( ((struct sockaddr_in*)&ss)->sin_port);
87 return ntohs( ((struct sockaddr_in6*)&ss)->sin6_port);

Completed in 172 milliseconds

1234567891011>>