Home
last modified time | relevance | path

Searched refs:ntohs (Results 1 – 23 of 23) sorted by relevance

/system/nfc/src/gki/common/
Dgki_inet.h23 #define htons ntohs
30 #define ntohs(n) (n) macro
37 extern uint16_t ntohs(uint16_t n);
/system/nfc/halimpl/bcm2079x/gki/common/
Dgki_inet.h23 #define htons ntohs
30 #define ntohs(n) (n) macro
37 extern uint16_t ntohs(uint16_t n);
/system/core/libnetutils/
Dpacket.c188 } else if (nread < ntohs(packet.ip.tot_len)) { in receive_packet()
190 ALOGD("Packet was truncated (read %d, needed %d)", nread, ntohs(packet.ip.tot_len)); in receive_packet()
198 ALOGD("UDP dest port (%d) is not DHCP client", ntohs(packet.udp.dest)); in receive_packet()
220 dhcp_size = ntohs(packet.udp.len) - sizeof(packet.udp); in receive_packet()
223 nread = ntohs(packet.ip.tot_len); in receive_packet()
Ddhcpclient.c272 ntohl(msg->xid), ntohs(msg->secs), ntohs(msg->flags), len); in dump_dhcp_msg()
/system/core/libcutils/
Dsockets.cpp40 return ntohs(reinterpret_cast<sockaddr_in*>(&addr)->sin_port); in socket_get_local_port()
/system/bt/btif/src/
Dbtif_util.cc112 uuid16_bo = ntohs(uuid16); in uuid16_to_uuid128()
156 ntohs(uuid1), ntohs(uuid2), ntohs(uuid3), ntohl(uuid4), in uuid_to_string_legacy()
157 ntohs(uuid5)); in uuid_to_string_legacy()
Dbtif_pan.cc546 uint16_t proto = ntohs(hdr->h_proto); in should_forward()
566 ntohs(eth_hdr->h_proto), hdr, 0); in forward_bnep()
/system/netd/tests/dns_responder/
Ddns_responder.cpp248 qtype = ntohs(*reinterpret_cast<const uint16_t*>(cur)); in read()
249 qclass = ntohs(*reinterpret_cast<const uint16_t*>(cur + sizeof(uint16_t))); in read()
342 rtype = ntohs(intfields.rtype); in readIntFields()
343 rclass = ntohs(intfields.rclass); in readIntFields()
345 *rdlen = ntohs(intfields.rdlen); in readIntFields()
499 id = ntohs(header.id); in readHeader()
510 *qdcount = ntohs(header.qdcount); in readHeader()
511 *ancount = ntohs(header.ancount); in readHeader()
512 *nscount = ntohs(header.nscount); in readHeader()
513 *arcount = ntohs(header.arcount); in readHeader()
/system/core/libutils/
DUnicode.cpp32 # define ntohs(x) ( (((x) << 8) & 0xff00) | (((x) >> 8) & 255) ) macro
33 # define htons(x) ntohs(x)
342 const char16_t c2 = ntohs(*s2N); in strzcmp16_h_n()
351 ? (0 - (int)ntohs(*s2N)) in strzcmp16_h_n()
/system/core/base/include/android-base/
Dendian.h60 #define ntohs(x) __builtin_bswap16(x) macro
/system/core/base/
Dendian_test.cpp42 ASSERT_EQ(le16, ntohs(be16)); in TEST()
/system/netd/tests/
Dsock_diag_test.cpp99 port, ntohs(client46.sin6_port), ntohs(client6.sin6_port)); in TEST_F()
/system/extras/tests/tcp_nuke_addr/
Dtcp_nuke_addr_test.cpp135 printf("Using address %s:%d\n", inet_ntoa(sin.sin_addr), ntohs(sin.sin_port)); in main()
/system/core/adb/
Dtransport_mdns.cpp230 interfaceIndex, hosttarget, ntohs(port)); in register_resolved_mdns_service()
Dsysdeps_win32.cpp734 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port), in network_loopback_client()
801 ntohs(addr.sin_port), in _network_server()
1013 return ntohs(reinterpret_cast<sockaddr_in*>(&addr_storage)->sin_port); in adb_socket_get_local_port()
/system/netd/server/
DSockDiagTest.cpp106 port, ntohs(client46.sin6_port), ntohs(client6.sin6_port)); in TEST_F()
DMDnsSdListener.cpp253 port = ntohs(port); in MDnsSdListenerResolveCallback()
/system/extras/ext4_utils/
Dext4_utils.c88 uuid->time_mid = ntohs(uuid->time_mid); in generate_sha1_uuid()
89 uuid->time_hi_and_version = ntohs(uuid->time_hi_and_version); in generate_sha1_uuid()
/system/netd/tests/benchmarks/
Dconnect_benchmark.cpp115 return ntohs(sin.sin_port); in bindAndListen()
/system/bt/stack/sdp/
Dsdp_utils.cc925 uuid16_bo = ntohs(uuid16); in sdpu_uuid16_to_uuid128()
/system/bt/bta/sdp/
Dbta_sdp_act.cc85 su.uu.uuid16 = ntohs(u16); in shorten_sdp_uuid()
/system/update_engine/
Dtest_http_server.cc621 in_port_t port = ntohs(bound_addr.sin_port); in main()
/system/bt/bta/jv/
Dbta_jv_act.cc788 su.uu.uuid16 = ntohs(u16); in shorten_sdp_uuid()