Home
last modified time | relevance | path

Searched refs:ipv6 (Results 1 – 6 of 6) sorted by relevance

/system/core/adb/sysdeps/posix/
Dnetwork.cpp58 static int _network_loopback_client(bool ipv6, int port, int type, std::string* error) { in _network_loopback_client() argument
59 unique_fd s(socket(ipv6 ? AF_INET6 : AF_INET, type, 0)); in _network_loopback_client()
67 sockaddr* addr = (ipv6 ? loopback_addr6 : loopback_addr4)(&addr_storage, &addrlen, 0); in _network_loopback_client()
74 addr = (ipv6 ? loopback_addr6 : loopback_addr4)(&addr_storage, &addrlen, port); in _network_loopback_client()
93 static int _network_loopback_server(bool ipv6, int port, int type, std::string* error) { in _network_loopback_server() argument
94 unique_fd s(socket(ipv6 ? AF_INET6 : AF_INET, type, 0)); in _network_loopback_server()
105 sockaddr* addr = (ipv6 ? loopback_addr6 : loopback_addr4)(&addr_storage, &addrlen, port); in _network_loopback_server()
/system/netd/tests/
Dnetd_client_test.cpp62 ipv6(socket(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0)); in expectHasNetworking() local
64 EXPECT_LE(3, ipv6); in expectHasNetworking()
85 android::base::unique_fd ipv6(socket(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0)); in expectNoNetworking() local
86 EXPECT_EQ(-1, ipv6); in expectNoNetworking()
/system/libbase/
Dparsenetaddress.cpp31 bool ipv6 = true; in ParseNetAddress() local
50 ipv6 = false; in ParseNetAddress()
75 StringPrintf(ipv6 ? "[%s]:%d" : "%s:%d", host->c_str(), *port); in ParseNetAddress()
/system/netd/client/
DNetdClientTest.cpp65 ipv6(socketFuncPtr(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0)); in expectAllowNetworkingForProcess() local
67 EXPECT_LE(3, ipv6); in expectAllowNetworkingForProcess()
81 android::base::unique_fd ipv6(socketFuncPtr(AF_INET6, SOCK_STREAM | SOCK_CLOEXEC, 0)); in expectNotAllowNetworkingForProcess() local
82 EXPECT_EQ(-1, ipv6); in expectNotAllowNetworkingForProcess()
/system/netd/libnetdutils/include/netdutils/
DInternetAddresses.h117 inline bool usesScopedIds(const in6_addr& ipv6) { in usesScopedIds() argument
118 return (IN6_IS_ADDR_LINKLOCAL(&ipv6) || IN6_IS_ADDR_MC_LINKLOCAL(&ipv6)); in usesScopedIds()
139 explicit IPAddress(const in6_addr& ipv6) in IPAddress() argument
140 : mData({AF_INET6, IPV6_ADDR_BITS, 0U, 0U, {.v6 = ipv6}}) {} in IPAddress()
141 IPAddress(const in6_addr& ipv6, uint32_t scope_id) in IPAddress() argument
146 usesScopedIds(ipv6) ? scope_id : 0U, in IPAddress()
147 {.v6 = ipv6}}) {} in IPAddress()
/system/core/rootdir/
Dinit.rc257 write /proc/sys/net/ipv6/fwmark_reflect 1
264 write /proc/sys/net/ipv6/conf/all/accept_redirects 0