Home
last modified time | relevance | path

Searched refs:ntohs (Results 1 – 21 of 21) 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.cpp93 ntohs(sockinfo->id.idiag_sport), in tcpInfoPrint()
94 ntohs(sockinfo->id.idiag_dport), in tcpInfoPrint()
DNFLogListenerTest.cpp120 EXPECT_EQ(kType, ntohs(nfmsg.res_id)); in TEST_F()
DSockDiagTest.cpp108 port, ntohs(client46.sin6_port), ntohs(client6.sin6_port)); in TEST_F()
DNFLogListener.cpp151 const auto& fn = findWithDefault(mDispatchMap, ntohs(nfmsg.res_id), kDefaultDispatchFn); in NFLogListener()
DMDnsSdListener.cpp257 port = ntohs(port); in MDnsSdListenerResolveCallback()
/system/core/libnetutils/
Dpacket.c185 } else if (nread < ntohs(packet.ip.tot_len)) { in receive_packet()
187 ALOGD("Packet was truncated (read %d, needed %d)", nread, ntohs(packet.ip.tot_len)); in receive_packet()
195 ALOGD("UDP dest port (%d) is not DHCP client", ntohs(packet.udp.dest)); in receive_packet()
217 dhcp_size = ntohs(packet.udp.len) - sizeof(packet.udp); in receive_packet()
234 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/bpf_progs/
Dclatd.c65 if (ntohs(ip6->payload_len) > 0xFFFF - sizeof(struct iphdr)) return TC_ACT_OK; in nat64()
103 .tot_len = htons(ntohs(ip6->payload_len) + sizeof(struct iphdr)), // u16 in nat64()
229 if (ntohs(ip4->tot_len) < sizeof(*ip4)) return TC_ACT_OK;
273 .payload_len = htons(ntohs(ip4->tot_len) - 20), // __be16
Dbpf_net_helpers.h61 #define ntohs(x) htons(x) macro
/system/netd/libnetdutils/
DNetfilter.cpp28 << static_cast<int>(msg.version) << ", res_id: 0x" << ntohs(msg.res_id) << "]" in operator <<()
/system/libbase/include/android-base/
Dendian.h60 #define ntohs(x) __builtin_bswap16(x) macro
/system/libbase/
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/netd/tests/benchmarks/
Dconnect_benchmark.cpp93 return ntohs(sin.sin_port); in bindAndListen()
/system/netd/libnetdutils/include/netdutils/
DInternetAddresses.h274 : IPSockAddr(IPAddress(ipv4sa.sin_addr), ntohs(ipv4sa.sin_port)) {} in IPSockAddr()
276 : IPSockAddr(IPAddress(ipv6sa.sin6_addr, ipv6sa.sin6_scope_id), ntohs(ipv6sa.sin6_port)) {} in IPSockAddr()
/system/bt/btif/src/
Dbtif_pan.cc527 uint16_t proto = ntohs(hdr->h_proto); in should_forward()
544 ntohs(eth_hdr->h_proto), hdr, 0); in forward_bnep()
/system/update_engine/
Dtest_http_server.cc638 in_port_t port = ntohs(bound_addr.sin_port); in main()