/freebsd-9.3-release/sbin/routed/rtquery/ |
H A D | rtquery.c | 352 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-9.3-release/sys/contrib/pf/net/ |
H A D | pf_osfp.c | 80 #define NTOHS(x) (x) = ntohs((u_int16_t)(x)) 171 fp.fp_psize = ntohs(ip->ip_len); 194 fp.fp_psize = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen); 214 fp.fp_wsize = ntohs(tcp->th_win); 276 srcname, ntohs(tcp->th_sport),
|
/freebsd-9.3-release/sys/netinet/ |
H A D | tcp_lro.c | 156 cx = ntohs(ip6->ip6_plen); 171 cs = in_addword(ntohs(ip4->ip_len) - sizeof(*ip4), 370 eh_type = ntohs(eh->ether_type); 386 tcp_data_len = ntohs(ip6->ip6_plen); 405 ip_len = ntohs(ip4->ip_len);
|
H A D | if_ether.c | 451 if (ntohs(ar->ar_hrd) != ARPHRD_ETHER && 452 ntohs(ar->ar_hrd) != ARPHRD_IEEE802 && 453 ntohs(ar->ar_hrd) != ARPHRD_ARCNET && 454 ntohs(ar->ar_hrd) != ARPHRD_IEEE1394 && 455 ntohs(ar->ar_hrd) != ARPHRD_INFINIBAND) { 474 switch (ntohs(ar->ar_pro)) { 565 op = ntohs(ah->ar_op);
|
H A D | ip_fastfwd.c | 251 ip_len = ntohs(ip->ip_len); 344 ip->ip_len = ntohs(ip->ip_len); 345 ip->ip_off = ntohs(ip->ip_off);
|
/freebsd-9.3-release/usr.sbin/ppp/ |
H A D | fsm.c | 476 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...] |
H A D | nat_cmd.c | 338 *port = ntohs(sp->s_port); 509 bp->m_len = ntohs(((struct ip *)MBUF_CTOP(bp))->ip_len); 532 bp->m_len = ntohs(((struct ip *)MBUF_CTOP(bp))->ip_len); 566 len = ntohs(((struct ip *)fptr)->ip_len);
|
H A D | tcp.c | 200 inet_ntoa(sock.sin_addr), ntohs(sock.sin_port));
|
/freebsd-9.3-release/contrib/ntp/ntpdc/ |
H A D | ntpdc_ops.c | 609 pp->ppoll, pp->hpoll, (u_long)pp->keyid, pp->version, ntohs(pp->associd)); 858 print_pflag(fp, ntohs(pp->flags)); 1129 (u_int)ntohs(io->totalrecvbufs)); 1131 (u_int)ntohs(io->freerecvbufs)); 1133 (u_int)ntohs(io->fullrecvbufs)); 1135 (u_int)ntohs(io->lowwater)); 1190 (u_int)ntohs(mem->totalpeermem)); 1192 (u_int)ntohs(mem->freepeermem)); 1733 flags = ntohs(rl->flags); 1734 mflags = ntohs(r [all...] |
/freebsd-9.3-release/crypto/heimdal/lib/krb5/ |
H A D | krbhst.c | 80 def_port = ntohs(krb5_getportbyname (context, "http", "tcp", 80)); 82 def_port = ntohs(krb5_getportbyname (context, service, proto, 88)); 203 def_port = ntohs(krb5_getportbyname (context, "http", "tcp", 80)); 818 def_port = ntohs(krb5_getportbyname (context, "kerberos", "udp", 88)); 822 def_port = ntohs(krb5_getportbyname (context, "kerberos-adm", 827 def_port = ntohs(krb5_getportbyname (context, "kpasswd", "udp", 832 def_port = ntohs(krb5_getportbyname (context, "krb524", "udp", 4444));
|
/freebsd-9.3-release/contrib/ipfilter/ipsend/ |
H A D | ip.c | 209 iplen = ntohs(ip->ip_len) - hlen; 233 if (!(ntohs(ip->ip_off) & IP_MF)) 284 if ((t2->th_flags == TH_SYN) && !ntohs(ip->ip_off) &&
|
H A D | resend.c | 117 len = ntohs(ip->ip_len);
|
/freebsd-9.3-release/contrib/ofed/libsdp/src/ |
H A D | port.c | 788 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-9.3-release/contrib/tcpdump/ |
H A D | print-pfsync.c | 135 plen = ntohs(hdr->len); 158 count = ntohs(subh->count); 308 printf(".%hu", ntohs(port));
|
/freebsd-9.3-release/sys/contrib/ipfilter/netinet/ |
H A D | ip_pptp_pxy.c | 311 len = ntohs(hdr->pptph_len); 370 switch (ntohs(hdr->pptph_type)) 404 switch (ntohs(buffer[4]))
|
/freebsd-9.3-release/bin/date/ |
H A D | netdate.c | 159 msg.tsp_seq = ntohs(msg.tsp_seq);
|
/freebsd-9.3-release/contrib/ofed/management/libibmad/src/ |
H A D | serv.c | 96 rport.lid = ntohs(mad_addr->lid);
|
/freebsd-9.3-release/contrib/sendmail/src/ |
H A D | sasl.c | 281 sm_snprintf(pbuf, sizeof(pbuf), "%d", ntohs(addr->sin.sin_port));
|
/freebsd-9.3-release/crypto/heimdal/appl/test/ |
H A D | common.c | 149 snprintf (portstr, sizeof(portstr), "%u", ntohs(port));
|
/freebsd-9.3-release/crypto/openssh/openbsd-compat/ |
H A D | fake-rfc2553.c | 57 snprintf(tmpserv, sizeof(tmpserv), "%d", ntohs(sin->sin_port));
|
/freebsd-9.3-release/lib/libc/net/ |
H A D | rcmd.c | 128 (void)snprintf(num, sizeof(num), "%d", ntohs(rport)); 260 aport = ntohs(((struct sockaddr_in *)&from)->sin_port); 264 aport = ntohs(((struct sockaddr_in6 *)&from)->sin6_port); 374 *alport = (int)ntohs(*sport);
|
/freebsd-9.3-release/lib/libstand/ |
H A D | rarp.c | 205 printf("bad op=0x%x\n", ntohs(ap->arp_op));
|
/freebsd-9.3-release/sys/net/ |
H A D | if_fddisubr.c | 161 switch (ntohs(ah->ar_op)) { 479 ntohs(l->llc_snap.ether_type) == ETHERTYPE_AT) { 487 ntohs(l->llc_snap.ether_type) == ETHERTYPE_AARP) { 500 type = ntohs(l->llc_snap.ether_type);
|
/freebsd-9.3-release/tools/regression/netinet/tcpstream/ |
H A D | tcpstream.c | 149 inet_ntoa(other_sin.sin_addr), ntohs(other_sin.sin_port));
|
/freebsd-9.3-release/usr.sbin/bluetooth/sdpd/ |
H A D | server.c | 436 sizeof(*pdu) + (pdu->len = ntohs(pdu->len)) == len) { 504 pdu->pid, ntohs(pdu->tid), error); 510 pdu->pid, ntohs(pdu->tid), pdu->len, len, error); 517 pdu->pid, ntohs(pdu->tid), error);
|