Searched refs:ntohs (Results 76 - 100 of 554) sorted by relevance

1234567891011>>

/freebsd-10.0-release/contrib/tcpdump/
H A Dtcpdump-stdinc.h185 #undef ntohs macro
193 #define ntohs(x) __ntohs(x) macro
/freebsd-10.0-release/sys/netatalk/
H A Dddp_pcb.c233 ntohs(net) >= ntohs(aa->aa_firstnet) &&
234 ntohs(net) <= ntohs(aa->aa_lastnet))
406 ntohs(ddp->ddp_lsat.sat_addr.s_net) >=
407 ntohs(aa->aa_firstnet) &&
408 ntohs(ddp->ddp_lsat.sat_addr.s_net) <=
409 ntohs(aa->aa_lastnet)) {
H A Daarp.c162 (ntohs(aa->aa_firstnet) <= ntohs(sat->sat_addr.s_net)) &&
163 (ntohs(aa->aa_lastnet) >= ntohs(sat->sat_addr.s_net)))
260 ntohs(AA_SAT(aa)->sat_addr.s_net), AA_SAT(aa)->sat_addr.s_node);
341 if (ntohs(ar->ar_hrd) != AARPHRD_ETHER)
348 switch(ntohs(ar->ar_pro)) {
389 op = ntohs(ea->aarp_op);
699 ntohs(AA_SAT(aa)->sat_addr.s_net), AA_SAT(aa)->sat_addr.s_node);
/freebsd-10.0-release/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-10.0-release/contrib/amd/amd/
H A Dnfs_prot_svc.c127 ntohs(sinp->sin_port) >= IPPORT_RESERVED &&
131 ntohs(sinp->sin_port));
141 ntohs(sinp->sin_port));
146 ntohs(sinp->sin_port),
/freebsd-10.0-release/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]));
H A Dprintstatefields.c232 PRINTF("%hu", ntohs(sp->is_sport));
236 PRINTF("%hu", ntohs(sp->is_dport));
/freebsd-10.0-release/contrib/ofed/libsdp/src/
H A Dmatch.c116 port = ntohs( sin6->sin6_port );
121 port = ntohs( sin->sin_port );
135 port = ntohs( sin6->sin6_port );
137 port = ntohs( sin->sin_port );
/freebsd-10.0-release/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));
91 inet_ntoa(c->dst.sin_addr), ntohs(c->dst.sin_port),
116 inet_ntoa(c->dst.sin_addr), ntohs(c->dst.sin_port));
276 ntohs(dst.sin_port));
/freebsd-10.0-release/crypto/openssh/openbsd-compat/
H A Dbindresvport.c90 port = ntohs(*portp);
H A Drresvport.c104 *alport = ntohs(*portp);
/freebsd-10.0-release/usr.bin/netstat/
H A Datalk.c84 sprintf(mybuf,"%hu",ntohs(sat->sat_addr.s_net));
141 ntohs(sat->sat_range.r_netrange.nr_firstnet),
142 ntohs(sat->sat_range.r_netrange.nr_lastnet));
145 ntohs(sat->sat_range.r_netrange.nr_firstnet));
/freebsd-10.0-release/usr.bin/talk/
H A Dctl_transact.c110 rp->addr.sa_family = ntohs(rp->addr.sa_family);
/freebsd-10.0-release/sys/netinet/libalias/
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-10.0-release/contrib/unbound/validator/
H A Dvalidator.c448 if(dname_seen && ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME) {
466 ntohs(s->rk.type), ntohs(s->rk.rrset_class));
468 if(ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME)
470 else if(ntohs(s->rk.type) == LDNS_RR_TYPE_DNAME)
480 ntohs(s->rk.type) == LDNS_RR_TYPE_DNAME) {
495 ntohs(s->rk.type), ntohs(s->rk.rrset_class));
539 if(ntohs(rep->rrsets[ rep->an_numrrsets ]->rk.type) != LDNS_RR_TYPE_NS)
589 ntohs(
[all...]
/freebsd-10.0-release/sys/netpfil/ipfw/
H A Dip_fw_log.c468 ntohs(tcp->th_sport),
470 ntohs(tcp->th_dport));
479 ntohs(udp->uh_sport),
481 ntohs(udp->uh_dport));
523 ntohs(ip6->ip6_plen) - hlen,
524 ntohs(offset) << 3, ip6f_mf ? "+" : "");
529 ipoff = ntohs(ip->ip_off);
530 iplen = ntohs(ip->ip_len);
534 ntohs(ip->ip_id), iplen - (ip->ip_hl << 2),
/freebsd-10.0-release/contrib/ntp/libisc/
H A Dsockaddr.c140 snprintf(pbuf, sizeof(pbuf), "%u", ntohs(sockaddr->type.sin.sin_port));
143 snprintf(pbuf, sizeof(pbuf), "%u", ntohs(sockaddr->type.sin6.sin6_port));
211 p = ntohs(sockaddr->type.sin.sin_port);
224 p = ntohs(sockaddr->type.sin6.sin6_port);
425 port = ntohs(sockaddr->type.sin.sin_port);
428 port = ntohs(sockaddr->type.sin6.sin6_port);
/freebsd-10.0-release/contrib/unbound/util/data/
H A Dmsgreply.c677 if(ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME &&
678 ntohs(s->rk.rrset_class) == qinfo->qclass &&
698 if(ntohs(s->rk.type) == qinfo->qtype &&
699 ntohs(s->rk.rrset_class) == qinfo->qclass &&
705 if(ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME &&
706 ntohs(s->rk.rrset_class) == qinfo->qclass &&
721 if(ntohs(s->rk.type) == type &&
722 ntohs(s->rk.rrset_class) == dclass &&
737 if(ntohs(s->rk.type) == type &&
738 ntohs(
[all...]
/freebsd-10.0-release/sys/net/
H A Dieee8023ad_lacp.c435 ntohs(mdu->mdu_info.mi_rq_port), mdu->mdu_info.mi_rq_system, ":",
599 req->actor_prio = ntohs(la->la_actor.lip_systemid.lsi_prio);
602 req->actor_key = ntohs(la->la_actor.lip_key);
603 req->actor_portprio = ntohs(la->la_actor.lip_portid.lpi_prio);
604 req->actor_portno = ntohs(la->la_actor.lip_portid.lpi_portno);
607 req->partner_prio = ntohs(la->la_partner.lip_systemid.lsi_prio);
610 req->partner_key = ntohs(la->la_partner.lip_key);
611 req->partner_portprio = ntohs(la->la_partner.lip_portid.lpi_prio);
612 req->partner_portno = ntohs(la->la_partner.lip_portid.lpi_portno);
626 req->actor_prio = ntohs(l
[all...]
/freebsd-10.0-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/aggs/
H A Dtst.subr.d94 INTFUNC(ntohs(0x1234))
/freebsd-10.0-release/libexec/rbootd/
H A Drmp_var.h159 (i) = (((u_int32_t)ntohs((w).val[_WORD_HIGHPART])) << 16) | ntohs((w).val[_WORD_LOWPART])
/freebsd-10.0-release/sys/netinet/
H A Dsctp_asconf.c174 aparam_length = ntohs(aph->ph.param_length);
176 param_type = ntohs(ph->param_type);
178 param_length = ntohs(ph->param_length);
328 aparam_length = ntohs(aph->ph.param_length);
330 param_type = ntohs(ph->param_type);
332 param_length = ntohs(ph->param_length);
462 aparam_length = ntohs(aph->ph.param_length);
464 param_type = ntohs(ph->param_type);
466 param_length = ntohs(ph->param_length);
609 if (ntohs(c
[all...]
H A Dtcp_debug.c176 isipv6 ? ntohs(((struct ip6_hdr *)ipgen)->ip6_plen) :
178 ntohs(((struct ip *)ipgen)->ip_len);

Completed in 231 milliseconds

1234567891011>>