Home
last modified time | relevance | path

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

/system/nfc/src/gki/common/
Dgki_inet.h24 #define ntohs(n) (n) macro
31 extern uint16_t ntohs(uint16_t n);
/system/netd/server/
DWakeupController.cpp60 args.srcPort = ntohs(header.th_sport); in extractIpPorts()
61 args.dstPort = ntohs(header.th_dport); in extractIpPorts()
69 args.srcPort = ntohs(header.uh_sport); in extractIpPorts()
70 args.dstPort = ntohs(header.uh_dport); in extractIpPorts()
159 size_t hwAddrLen = ntohs(hwaddr.hw_addrlen); in init()
167 args.ethertype = ntohs(packetHdr.hw_protocol); in init()
DTcpSocketMonitor.cpp88 ntohs(sockinfo->id.idiag_sport), in tcpInfoPrint()
89 ntohs(sockinfo->id.idiag_dport), in tcpInfoPrint()
DNFLogListenerTest.cpp124 EXPECT_EQ(kType, ntohs(nfmsg.res_id)); in TEST_F()
DSockDiagTest.cpp106 port, ntohs(client46.sin6_port), ntohs(client6.sin6_port)); in TEST_F()
DNFLogListener.cpp153 const auto& fn = findWithDefault(mDispatchMap, ntohs(nfmsg.res_id), kDefaultDispatchFn); in NFLogListener()
DMDnsSdListener.cpp253 port = ntohs(port); in MDnsSdListenerResolveCallback()
/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()
237 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/netd/libnetdutils/
DNetfilter.cpp28 << static_cast<int>(msg.version) << ", res_id: 0x" << ntohs(msg.res_id) << "]" in operator <<()
/system/netd/tests/dns_responder/
Ddns_responder.cpp252 qtype = ntohs(*reinterpret_cast<const uint16_t*>(cur)); in read()
253 qclass = ntohs(*reinterpret_cast<const uint16_t*>(cur + sizeof(uint16_t))); in read()
346 rtype = ntohs(intfields.rtype); in readIntFields()
347 rclass = ntohs(intfields.rclass); in readIntFields()
349 *rdlen = ntohs(intfields.rdlen); in readIntFields()
507 id = ntohs(header.id); in readHeader()
519 *qdcount = ntohs(header.qdcount); in readHeader()
520 *ancount = ntohs(header.ancount); in readHeader()
521 *nscount = ntohs(header.nscount); in readHeader()
522 *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)
349 const char16_t c2 = ntohs(*s2N); in strzcmp16_h_n()
358 ? (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.cpp232 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()
799 ntohs(addr.sin_port), in _network_server()
1011 return ntohs(reinterpret_cast<sockaddr_in*>(&addr_storage)->sin_port); in adb_socket_get_local_port()
/system/netd/tests/benchmarks/
Dconnect_benchmark.cpp115 return ntohs(sin.sin_port); in bindAndListen()
/system/bt/btif/src/
Dbtif_pan.cc546 uint16_t proto = ntohs(hdr->h_proto); in should_forward()
563 ntohs(eth_hdr->h_proto), hdr, 0); in forward_bnep()
/system/update_engine/
Dtest_http_server.cc623 in_port_t port = ntohs(bound_addr.sin_port); in main()