Home
last modified time | relevance | path

Searched refs:htonl (Results 1 – 25 of 28) sorted by relevance

12

/packages/modules/Bluetooth/system/gd/hal/
Dsnoop_logger_socket_thread_test.cc106 addr.sin_addr.s_addr = htonl(SnoopLoggerSocket::DEFAULT_LOCALHOST_); in TEST_F()
133 addr.sin_addr.s_addr = htonl(SnoopLoggerSocket::DEFAULT_LOCALHOST_); in TEST_F()
178 addr.sin_addr.s_addr = htonl(SnoopLoggerSocket::DEFAULT_LOCALHOST_); in TEST_F()
215 addr.sin_addr.s_addr = htonl(SnoopLoggerSocket::DEFAULT_LOCALHOST_); in TEST_F()
253 addr.sin_addr.s_addr = htonl(SnoopLoggerSocket::DEFAULT_LOCALHOST_); in TEST_F()
Dsnoop_logger.cc283 return static_cast<uint64_t>(htonl(ll & 0xffffffff)) << 32 | htonl(ll >> 32); in htonll()
1216 PacketHeaderType header = {.length_original = htonl(length), in Capture()
1217 .length_captured = htonl(length), in Capture()
1218 .flags = htonl(static_cast<uint32_t>(flags.to_ulong())), in Capture()
1228 header.length_captured = htonl(included_length + /* type byte */ PACKET_TYPE_LENGTH); in Capture()
1244 header.length_captured = htonl(length); in Capture()
Dsnoop_logger_socket.cc235 addr.sin_addr.s_addr = htonl(socket_address_); in CreateSocket()
Dsnoop_logger_test.cc1399 addr.sin_addr.s_addr = htonl(SnoopLoggerSocket::DEFAULT_LOCALHOST_); in TEST_F()
1429 addr.sin_addr.s_addr = htonl(SnoopLoggerSocket::DEFAULT_LOCALHOST_); in TEST_F()
1488 addr.sin_addr.s_addr = htonl(SnoopLoggerSocket::DEFAULT_LOCALHOST_); in TEST_F()
1659 addr.sin_addr.s_addr = htonl(SnoopLoggerSocket::DEFAULT_LOCALHOST_); in TEST_F()
Dhci_hal_host_test.cc95 listen_address.sin_addr.s_addr = htonl(INADDR_ANY); in FakeRootcanalDesktopHciServer()
/packages/modules/Connectivity/bpf_progs/
DdscpPolicy.c80 src_ip.s6_addr32[2] = htonl(0x0000ffff); in DEFINE_BPF_MAP_GRW()
81 dst_ip.s6_addr32[2] = htonl(0x0000ffff); in DEFINE_BPF_MAP_GRW()
139 htonl(ntohl(old_first_be32) & 0xF03FFFFF | (existing_rule->dscp_val << 22)); in DEFINE_BPF_MAP_GRW()
217 __be32 new_first_be32 = htonl(ntohl(old_first_be32) & 0xF03FFFFF | (new_dscp << 22)); in DEFINE_BPF_MAP_GRW()
Doffload.c180 if (src32 != htonl(0x0064ff9b) && // 64:ff9b:/32 incl. XLAT464 WKP
181 (src32 & htonl(0xe0000000)) != htonl(0x20000000)) // 2000::/3 Global Unicast
186 if (dst32 != htonl(0x0064ff9b) && // 64:ff9b:/32 incl. XLAT464 WKP
187 (dst32 & htonl(0xe0000000)) != htonl(0x20000000)) // 2000::/3 Global Unicast
Doffload@mainline.c180 if (src32 != htonl(0x0064ff9b) && // 64:ff9b:/32 incl. XLAT464 WKP
181 (src32 & htonl(0xe0000000)) != htonl(0x20000000)) // 2000::/3 Global Unicast
186 if (dst32 != htonl(0x0064ff9b) && // 64:ff9b:/32 incl. XLAT464 WKP
187 (dst32 & htonl(0xe0000000)) != htonl(0x20000000)) // 2000::/3 Global Unicast
Dbpf_net_helpers.h75 #define htonl(x) (__builtin_constant_p(x) ? ___constant_swab32(x) : __builtin_bswap32(x)) macro
77 #define ntohl(x) htonl(x)
Dnetd.c389 k.daddr.s6_addr32[2] = htonl(0xFFFF); in ingress_should_discard()
/packages/modules/Connectivity/staticlibs/native/ip_checksum/
Dchecksum.c83 uint32_t checksum_len = htonl(len); in ipv6_pseudo_header_checksum()
84 uint32_t checksum_next = htonl(protocol); in ipv6_pseudo_header_checksum()
/packages/modules/DnsResolver/
Dres_mkquery.cpp158 *reinterpret_cast<uint32_t*>(cp) = htonl(0); in res_nmkquery()
175 *reinterpret_cast<uint32_t*>(cp) = htonl(0); in res_nmkquery()
DDnsProxyListener.cpp789 uint32_t be_data = htonl(data); in sendBE32()
816 uint32_t buf = htonl(hp->h_addrtype); in sendhostent()
819 buf = htonl(hp->h_length); in sendhostent()
/packages/modules/Connectivity/service/native/libs/libclat/
Dclatutils.cpp86 if (isIpv4AddressFreeFunc(htonl(ipv4))) return htonl(ipv4); in selectIpv4AddressInternal()
Dclatutils_test.cpp164 ASSERT_EQ(detect_mtu(&in6addr_loopback, htonl(1), 0 /*MARK_UNSET*/), 65536); in TEST_F()
/packages/modules/Bluetooth/tools/rootcanal/net/posix/
Dposix_async_socket_server.cc56 listen_address.sin_addr.s_addr = htonl(INADDR_ANY); in PosixAsyncSocketServer()
/packages/modules/Connectivity/clatd/
Dtranslate.c147 ip->saddr = htonl((0xff << 24) + ttl_guess); in fill_ip_header()
195 frag_hdr->ip6f_ident = htonl(ntohs(old_header->id)); in maybe_fill_frag_header()
Dclatd.c219 .ip6_flow = htonl(6 << 28), // v6, 0 tclass, 0 flowlabel in send_dad()
Dclatd_test.cpp818 ASSERT_NE(htonl((uint32_t)0x00000464), Global_Clatd_Config.ipv6_local_subnet.s6_addr32[3]); in TEST_F()
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/
DInternetAddresses.cpp103 mData.ip.v4.s_addr &= htonl(mask); in IPPrefix()
DInternetAddressesTest.cpp83 const in_addr IPV4_ANY{htonl(INADDR_ANY)};
84 const in_addr IPV4_LOOPBACK{htonl(INADDR_LOOPBACK)};
/packages/modules/adb/pairing_auth/tests/
Dpairing_auth_test.cpp296 *payload = htonl(*payload + 1); in TEST_F()
319 *payload = htonl(*payload - 1); in TEST_F()
/packages/modules/adb/pairing_connection/
Dpairing_connection.cpp207 network_header.payload = htonl(network_header.payload); in WriteHeader()
350 out_header.payload = htonl(outbuf.size()); in DoExchangePeerInfo()
/packages/modules/adb/sysdeps/posix/
Dnetwork.cpp43 addr4->sin_addr.s_addr = htonl(INADDR_LOOPBACK); in loopback_addr4()
/packages/modules/Bluetooth/system/osi/src/
Dsocket.cc98 addr.sin_addr.s_addr = htonl(LOCALHOST_); in socket_listen()

12