Searched refs:ntohs (Results 151 - 175 of 554) sorted by relevance

1234567891011>>

/freebsd-10.0-release/libexec/bootpd/tools/bootptest/
H A Dprint-bootp.c126 printf(" secs:%d", ntohs(bp->bp_secs));
329 printf("%d", ntohs(us));
/freebsd-10.0-release/libexec/talkd/
H A Dprocess.c81 mp->addr.sa_family = ntohs(mp->addr.sa_family);
88 mp->ctl_addr.sa_family = ntohs(mp->ctl_addr.sa_family);
/freebsd-10.0-release/sys/boot/i386/libi386/
H A Dsmbios.c158 f2 = ntohs(SMBIOS_GET16(addr, 4));
159 f3 = ntohs(SMBIOS_GET16(addr, 6));
/freebsd-10.0-release/usr.sbin/IPXrouted/
H A Daf.c135 return (ntohs(sipx->sipx_addr.x_port) == IPXPORT_RIP );
159 if(do_output || ntohs(msg->rip_cmd) == RIPCMD_REQUEST)
/freebsd-10.0-release/usr.sbin/iscsid/
H A Ddiscovery.c110 if (ntohs(bhslr->bhslr_response) != BHSLR_RESPONSE_CLOSED_SUCCESSFULLY)
112 ntohs(bhslr->bhslr_response));
/freebsd-10.0-release/usr.sbin/pkg/
H A Ddns_utils.c127 qdcount = ntohs(q.hdr.qdcount);
128 ancount = ntohs(q.hdr.ancount);
/freebsd-10.0-release/usr.sbin/rpcbind/
H A Dsecurity.c140 (ntohs(sin->sin_port) < IPPORT_RESERVED));
147 (ntohs(sin6->sin6_port) < IPV6PORT_RESERVED));
/freebsd-10.0-release/contrib/ofed/libmthca/src/
H A Dcq.c281 cqe->db_cnt = htons(ntohs(cqe->db_cnt) - dbd);
439 wc->slid = ntohs(cqe->rlid);
440 wc->sl = ntohs(cqe->sl_g_mlpath) >> 12;
442 wc->dlid_path_bits = ntohs(cqe->sl_g_mlpath) & 0x7f;
444 wc->wc_flags |= ntohs(cqe->sl_g_mlpath) & 0x80 ?
/freebsd-10.0-release/contrib/sendmail/src/
H A Ddomain.c312 for (qdcount = ntohs((unsigned short) hp->qdcount);
324 ancount = ntohs((unsigned short) hp->ancount);
970 for (qdcount = ntohs((unsigned short) hp->qdcount);
978 ntohs((unsigned short) hp->qdcount));
985 for (ancount = ntohs((unsigned short) hp->ancount);
/freebsd-10.0-release/contrib/unbound/util/data/
H A Dpacked_rrset.c165 uint16_t t = ntohs(key->type);
200 if(ntohs(rrset->rk.type) != LDNS_RR_TYPE_CNAME &&
201 ntohs(rrset->rk.type) != LDNS_RR_TYPE_DNAME)
266 ntohs(rrset->rk.type), ntohs(rrset->rk.rrset_class));
/freebsd-10.0-release/sbin/routed/rtquery/
H A Drtquery.c352 myaddr.sin_port = htons(ntohs(myaddr.sin_port)-1);
728 ntohs(na->au.a_md5.md5_pkt_len),
738 ntohs(na->a_type));
743 && na->a_type == ntohs(1)) {
760 ntohs(n->n_family),
/freebsd-10.0-release/sys/netinet/
H A Dtcp_lro.c156 cx = ntohs(ip6->ip6_plen);
171 cs = in_addword(ntohs(ip4->ip_len) - sizeof(*ip4),
389 eh_type = ntohs(eh->ether_type);
405 tcp_data_len = ntohs(ip6->ip6_plen);
424 ip_len = ntohs(ip4->ip_len);
H A Dif_ether.c460 if (ntohs(ar->ar_hrd) != ARPHRD_ETHER &&
461 ntohs(ar->ar_hrd) != ARPHRD_IEEE802 &&
462 ntohs(ar->ar_hrd) != ARPHRD_ARCNET &&
463 ntohs(ar->ar_hrd) != ARPHRD_IEEE1394 &&
464 ntohs(ar->ar_hrd) != ARPHRD_INFINIBAND) {
483 switch (ntohs(ar->ar_pro)) {
586 op = ntohs(ah->ar_op);
H A Dip_fastfwd.c254 ip_len = ntohs(ip->ip_len);
487 ip_len = ntohs(ip->ip_len);
488 ip_off = ntohs(ip->ip_off);
/freebsd-10.0-release/usr.sbin/ppp/
H A Dfsm.c476 flen = ntohs(lhp->length) - sizeof *lhp;
617 flen = ntohs(lhp->length) - sizeof *lhp;
680 flen = ntohs(lhp->length) - sizeof *lhp;
811 flen = ntohs(lhp->length) - sizeof *lhp;
887 proto = ntohs(proto);
958 if (lcp && ntohs(lhp->length) - sizeof *lhp >= 4) {
970 ntohs(lhp->length) - sizeof *lhp, MB_ECHOOUT);
999 len = ntohs(lhp->length) - sizeof *lhp;
1057 if (ntohs(lh.length) > len) {
1059 "- dropped\n", fp->link->name, len, (int)ntohs(l
[all...]
/freebsd-10.0-release/contrib/ntp/ntpdc/
H A Dntpdc_ops.c583 pp->ppoll, pp->hpoll, (u_long)pp->keyid, pp->version, ntohs(pp->associd));
827 print_pflag(fp, ntohs(pp->flags));
1108 ntohs(io->totalrecvbufs));
1110 ntohs(io->freerecvbufs));
1112 ntohs(io->fullrecvbufs));
1114 ntohs(io->lowwater));
1170 ntohs(mem->totalpeermem));
1172 ntohs(mem->freepeermem));
1731 flags = ntohs(rl->flags);
1732 mflags = ntohs(r
[all...]
/freebsd-10.0-release/sys/contrib/ipfilter/netinet/
H A Dip_nat.c908 sum1 = (~ntohs(*sp)) & 0xffff;
950 sum1 = (~ntohs(*sp)) & 0xffff;
975 /* processing like hardware cksum or ntohs processing have been done by the */
989 sum1 = (~ntohs(*sp)) & 0xffff;
2074 fin.fin_data[0] = ntohs(nat->nat_ndport);
2075 fin.fin_data[1] = ntohs(nat->nat_nsport);
2721 port = ntohs(sport) + l;
2772 port = ntohs(sport);
2831 fin->fin_data[1] = ntohs(port);
3010 nport = ntohs(dpor
[all...]
/freebsd-10.0-release/crypto/heimdal/lib/krb5/
H A Dkrbhst.c80 def_port = ntohs(krb5_getportbyname (context, "http", "tcp", 80));
82 def_port = ntohs(krb5_getportbyname (context, service, proto, 88));
216 def_port = ntohs(krb5_getportbyname (context, "http", "tcp", 80));
923 def_port = ntohs(krb5_getportbyname (context, "kerberos", "udp", 88));
928 def_port = ntohs(krb5_getportbyname (context, "kerberos-adm",
934 def_port = ntohs(krb5_getportbyname (context, "kpasswd", "udp",
940 def_port = ntohs(krb5_getportbyname (context, "krb524", "udp", 4444));
/freebsd-10.0-release/contrib/apr/network_io/unix/
H A Dsockets.c186 if (sock->local_addr->sa.sin.sin_port == 0) { /* no need for ntohs() when comparing w/ 0 */
263 (*new)->remote_addr->port = ntohs((*new)->remote_addr->sa.sin.sin_port);
443 (*apr_sock)->local_addr->port = ntohs((*apr_sock)->local_addr->sa.sin.sin_port);
456 (*apr_sock)->remote_addr->port = ntohs((*apr_sock)->remote_addr->sa.sin.sin_port);
/freebsd-10.0-release/contrib/ipfilter/ipsend/
H A Dip.c207 iplen = ntohs(ip->ip_len) - hlen;
231 if (!(ntohs(ip->ip_off) & IP_MF))
282 if ((t2->th_flags == TH_SYN) && !ntohs(ip->ip_off) &&
/freebsd-10.0-release/contrib/ipfilter/lib/
H A Dipft_tx.c81 return ntohs(sp->s_port);
148 mb->mb_len = ntohs(((ip6_t *)ip)->ip6_plen) +
154 mb->mb_len = ntohs(ip->ip_len);
/freebsd-10.0-release/contrib/ofed/libsdp/src/
H A Dport.c788 return ntohs(sin->sin_port);
941 ntohs(((const struct sockaddr_in *)sin_addr)->sin_port));
1160 sin_addr->sin_family, buf, ntohs(sin_addr->sin_port));
1175 if (ntohs(sin_addr->sin_port) == 0) {
1314 serv_sin->sin_family, buf, ntohs(serv_sin->sin_port));
1327 fd, buf, ntohs(serv_sin->sin_port));
1351 fd, buf, ntohs(serv_sin->sin_port));
1381 fd, buf, ntohs(serv_sin->sin_port));
1474 sin4->sin_family, buf, ntohs(sin4->sin_port));
1483 actual_port = ntohs(sin
[all...]
/freebsd-10.0-release/contrib/tcpdump/
H A Dprint-pfsync.c135 plen = ntohs(hdr->len);
158 count = ntohs(subh->count);
308 printf(".%hu", ntohs(port));
/freebsd-10.0-release/sys/net/
H A Dif_spppsubr.c563 h->address, h->control, ntohs(h->protocol));
566 switch (ntohs (h->protocol)) {
573 h->address, h->control, ntohs(h->protocol));
693 h->address, h->control, ntohs(h->protocol));
696 switch (ntohs (h->protocol)) {
732 h->address, h->control, ntohs(h->protocol));
877 else if (INTERACTIVE (ntohs (tcp->th_sport)))
879 else if (INTERACTIVE (ntohs (tcp->th_dport)))
1465 ntohs (lh->len));
1498 sppp_cp_type_name (h->type), h->ident, ntohs (
[all...]
/freebsd-10.0-release/bin/date/
H A Dnetdate.c157 msg.tsp_seq = ntohs(msg.tsp_seq);

Completed in 322 milliseconds

1234567891011>>