/system/nfc/src/gki/common/ |
D | gki_inet.h | 24 #define ntohs(n) (n) macro 31 extern uint16_t ntohs(uint16_t n);
|
/system/netd/server/ |
D | WakeupController.cpp | 60 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()
|
D | TcpSocketMonitor.cpp | 93 ntohs(sockinfo->id.idiag_sport), in tcpInfoPrint() 94 ntohs(sockinfo->id.idiag_dport), in tcpInfoPrint()
|
D | NFLogListenerTest.cpp | 120 EXPECT_EQ(kType, ntohs(nfmsg.res_id)); in TEST_F()
|
D | SockDiagTest.cpp | 108 port, ntohs(client46.sin6_port), ntohs(client6.sin6_port)); in TEST_F()
|
D | NFLogListener.cpp | 151 const auto& fn = findWithDefault(mDispatchMap, ntohs(nfmsg.res_id), kDefaultDispatchFn); in NFLogListener()
|
D | MDnsSdListener.cpp | 257 port = ntohs(port); in MDnsSdListenerResolveCallback()
|
/system/core/libnetutils/ |
D | packet.c | 185 } 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()
|
D | dhcpclient.c | 272 ntohl(msg->xid), ntohs(msg->secs), ntohs(msg->flags), len); in dump_dhcp_msg()
|
/system/netd/bpf_progs/ |
D | clatd.c | 62 if (ntohs(ip6->payload_len) > 0xFFFF - sizeof(struct iphdr)) return TC_ACT_OK; in nat64() 100 .tot_len = htons(ntohs(ip6->payload_len) + sizeof(struct iphdr)), // u16 in nat64() 226 if (ntohs(ip4->tot_len) < sizeof(*ip4)) return TC_ACT_OK; in sched_cls_egress_clat_rawip() 270 .payload_len = htons(ntohs(ip4->tot_len) - 20), // __be16 in sched_cls_egress_clat_rawip()
|
D | offload.c | 148 bpf_csum_update(skb, 0xFFFF - ntohs(old_hl) + ntohs(new_hl)); in do_forward()
|
D | bpf_net_helpers.h | 53 #define ntohs(x) htons(x) macro
|
/system/core/libcutils/ |
D | sockets.cpp | 40 return ntohs(reinterpret_cast<sockaddr_in*>(&addr)->sin_port); in socket_get_local_port()
|
/system/netd/libnetdutils/ |
D | Netfilter.cpp | 28 << static_cast<int>(msg.version) << ", res_id: 0x" << ntohs(msg.res_id) << "]" in operator <<()
|
/system/libbase/include/android-base/ |
D | endian.h | 60 #define ntohs(x) __builtin_bswap16(x) macro
|
/system/libbase/ |
D | endian_test.cpp | 42 ASSERT_EQ(le16, ntohs(be16)); in TEST()
|
/system/netd/tests/ |
D | sock_diag_test.cpp | 99 port, ntohs(client46.sin6_port), ntohs(client6.sin6_port)); in TEST_F()
|
/system/extras/tests/tcp_nuke_addr/ |
D | tcp_nuke_addr_test.cpp | 135 printf("Using address %s:%d\n", inet_ntoa(sin.sin_addr), ntohs(sin.sin_port)); in main()
|
/system/core/libutils/ |
D | Unicode.cpp | 33 # define ntohs(x) ( (((x) << 8) & 0xff00) | (((x) >> 8) & 255) ) macro 34 # define htons(x) ntohs(x)
|
/system/netd/tests/benchmarks/ |
D | connect_benchmark.cpp | 93 return ntohs(sin.sin_port); in bindAndListen()
|
/system/netd/libnetdutils/include/netdutils/ |
D | InternetAddresses.h | 274 : 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/ |
D | btif_pan.cc | 545 uint16_t proto = ntohs(hdr->h_proto); in should_forward() 562 ntohs(eth_hdr->h_proto), hdr, 0); in forward_bnep()
|
/system/update_engine/ |
D | test_http_server.cc | 636 in_port_t port = ntohs(bound_addr.sin_port); in main()
|
/system/core/adb/client/ |
D | transport_mdns.cpp | 578 interfaceIndex, hosttarget, ntohs(port), serviceVersion); in register_resolved_mdns_service()
|
/system/core/adb/ |
D | sysdeps_win32.cpp | 835 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port), in network_loopback_client() 898 ntohs(addr.sin_port), in _network_server() 1155 return ntohs(reinterpret_cast<sockaddr_in*>(&addr_storage)->sin_port); in adb_socket_get_local_port()
|