/system/extras/tests/bionic/libc/common/ |
test_udp.c | 92 inet_ntoa(si_other.sin_addr), ntohs(si_other.sin_port), buf);
|
/external/iptables/extensions/ |
libipt_DNAT.c | 206 printf("%hu", ntohs(r->min.tcp.port)); 208 printf("-%hu", ntohs(r->max.tcp.port));
|
libipt_SNAT.c | 206 printf("%hu", ntohs(r->min.tcp.port)); 208 printf("-%hu", ntohs(r->max.tcp.port));
|
libxt_ipvs.c | 184 printf(" %svport %u", prefix, ntohs(data->vport)); 220 printf(" %svportctl %u", prefix, ntohs(data->vportctl));
|
/external/libpcap/ |
pcap-dag.c | 274 rlen = ntohs(header->rlen); 287 packet_len = ntohs(header->wlen); 301 packet_len = ntohs(header->wlen); 337 packet_len = ntohs(header->wlen); 352 packet_len = ntohs(header->wlen); 364 packet_len = ntohs(header->wlen); 425 if (p->md.stat.ps_drop > (UINT_MAX - ntohs(header->lctr))) { 428 p->md.stat.ps_drop += ntohs(header->lctr);
|
/frameworks/base/services/common_time/ |
common_time_server_packets.cpp | 58 #define DESERIALIZE_INT16(field_name) DESERIALIZE_FIELD(field_name, int16_t, ntohs) 152 packetType = ntohs(*((uint16_t*)(data + 6)));
|
/libcore/luni/src/main/native/ |
NetworkUtilities.cpp | 57 sin_port = ntohs(sin.sin_port); 62 sin_port = ntohs(sin6.sin6_port);
|
/external/dnsmasq/src/ |
tftp.c | 190 if (ntohs(*((unsigned short *)packet)) != OP_RRQ || 392 if (ntohs(mess->op) == OP_ACK && ntohs(mess->block) == (unsigned short)transfer->block) 400 else if (ntohs(mess->op) == OP_ERR) 417 (int)ntohs(mess->block), err,
|
/external/qemu/slirp/ |
udp.c | 111 len = ntohs((u_int16_t)uh->uh_ulen); 149 if (ntohs(uh->uh_dport) == BOOTP_SERVER) { 160 if (ntohs(uh->uh_dport) == TFTP_SERVER) { 385 if ((udptos[i].fport && ntohs(so->so_fport) == udptos[i].fport) || 386 (udptos[i].lport && ntohs(so->so_lport) == udptos[i].lport)) {
|
/external/iputils/ |
ping6.c | 187 return ntohs(v); [all...] |
/external/libppp/src/ |
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(lh.length)) [all...] |
/external/iproute2/ip/ |
ipxfrm.c | 478 fprintf(fp, "sport %u ", ntohs(sel->sport)); 480 fprintf(fp, "dport %u ", ntohs(sel->dport)); 486 fprintf(fp, "type %u ", ntohs(sel->sport)); 488 fprintf(fp, "code %u ", ntohs(sel->dport)); 493 (((__u32)ntohs(sel->sport)) << 16) + 494 ntohs(sel->dport)); 498 fprintf(fp, "type %u ", ntohs(sel->sport)); 760 fprintf(fp, "sport %u ", ntohs(e->encap_sport)); 761 fprintf(fp, "dport %u ", ntohs(e->encap_dport));
|
/external/ipsec-tools/src/racoon/ |
racoonctl.c | 1448 if ((ntohs(attr->type) & ISAKMP_GEN_MASK) == ISAKMP_GEN_TV) { 1455 if (len < (sizeof(*attr) + ntohs(attr->lorv))) { 1460 switch (ntohs(attr->type) & ~ISAKMP_GEN_MASK) { 1462 if (ntohs(attr->lorv) < sizeof(addr4)) { 1470 banner = racoon_malloc(ntohs(attr->lorv) + 1); 1475 memcpy(banner, attr + 1, ntohs(attr->lorv)); 1476 banner[ntohs(attr->lorv)] = '\0'; 1483 len -= (sizeof(*attr) + ntohs(attr->lorv)); 1486 (n + sizeof(*attr) + ntohs(attr->lorv)); [all...] |
/art/jdwpspy/ |
Net.cpp | 384 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port)); 700 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port), strerror(errno)); 704 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port));
|
/external/iputils/ninfod/ |
ninfod_core.c | 566 ntohs(query->ni_qtype), ntohs(query->ni_flags), printbuf); 595 qtypeinfo = qtypeinfo_lookup(ntohs(query->ni_qtype));
|
/external/tcpdump/ |
print-dhcp6.c | 432 printf(" %s", dhcp6opt_name(ntohs(opt))); 449 val16 = ntohs(val16); 597 val16 = ntohs(val16);
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/netinet/ |
in.h | 353 extern uint16_t ntohs (uint16_t __netshort) 373 # define ntohs(x) (x) macro 379 # define ntohs(x) __bswap_16 (x) macro
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/netinet/ |
in.h | 353 extern uint16_t ntohs (uint16_t __netshort) 373 # define ntohs(x) (x) macro 379 # define ntohs(x) __bswap_16 (x) macro
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/netinet/ |
in.h | 353 extern uint16_t ntohs (uint16_t __netshort) 373 # define ntohs(x) (x) macro 379 # define ntohs(x) __bswap_16 (x) macro
|
/bionic/libc/netbsd/resolv/ |
res_mkquery.c | 272 hp->arcount = htons(ntohs(hp->arcount) + 1);
|
/dalvik/vm/jdwp/ |
JdwpSocket.cpp | 370 netState->remotePort = ntohs(addr.addrInet.sin_port); 439 inet_ntoa(addr.addrInet.sin_addr), ntohs(addr.addrInet.sin_port)); 457 inet_ntoa(addr.addrInet.sin_addr), ntohs(addr.addrInet.sin_port), 466 ntohs(addr.addrInet.sin_port));
|
/external/android-clat/ |
ipv6.c | 175 ip_targ->tot_len = htons(ntohs(ip_targ->tot_len) + packet_length(out, pos));
|
/external/bluetooth/bluedroid/btif/src/ |
btif_pan.c | 484 if(ntohs(hdr->h_proto) == ETH_P_IP || ntohs(hdr->h_proto) == ETH_P_ARP) 486 BTIF_TRACE_DEBUG1("unknown proto:%x", ntohs(hdr->h_proto)); 504 ntohs(eth_hdr->h_proto), (UINT8*)packet, size, 0);
|
/external/chromium/net/spdy/ |
spdy_frame_builder.cc | 43 *result = ntohs(*(reinterpret_cast<uint16*>(*iter)));
|
/external/chromium_org/third_party/ots/include/ |
opentype-sanitiser.h | 19 #define ntohs(x) _byteswap_ushort (x) macro
|