/system/netd/server/ |
D | ClatdControllerTest.cpp | 154 in6_addr v6 = v6InterfaceAddr; in TEST_F() local 155 makeChecksumNeutral(&v6, v4, nat64Prefix); in TEST_F() 158 EXPECT_EQ(0, memcmp(&v6, &v6InterfaceAddr, 8)); in TEST_F() 161 uint64_t iid = *(uint64_t*)(&v6.s6_addr[8]); in TEST_F() 171 ip_checksum_add(0, &v6, sizeof(v6))); in TEST_F() 175 inet_ntop(AF_INET6, &v6, v6Str, sizeof(v6Str)); in TEST_F()
|
D | ClatdController.cpp | 146 void ClatdController::makeChecksumNeutral(in6_addr* v6, const in_addr v4, in makeChecksumNeutral() argument 149 arc4random_buf(&v6->s6_addr[8], 8); in makeChecksumNeutral() 157 uint16_t middlebytes = (v6->s6_addr[11] << 8) + v6->s6_addr[12]; in makeChecksumNeutral() 161 ip_checksum_add(0, v6, sizeof(*v6)); in makeChecksumNeutral() 164 v6->s6_addr[11] = delta >> 8; in makeChecksumNeutral() 165 v6->s6_addr[12] = delta & 0xff; in makeChecksumNeutral() 170 const in6_addr& nat64Prefix, in6_addr* v6) { in generateIpv6Address() argument 188 *v6 = sin6.sin6_addr; in generateIpv6Address() 190 if (IN6_IS_ADDR_UNSPECIFIED(v6) || IN6_IS_ADDR_LOOPBACK(v6) || IN6_IS_ADDR_LINKLOCAL(v6) || in generateIpv6Address() 191 IN6_IS_ADDR_SITELOCAL(v6) || IN6_IS_ADDR_ULA(v6)) { in generateIpv6Address() [all …]
|
D | ClatdController.h | 68 in6_addr v6; member 89 in6_addr* v6); 90 static void makeChecksumNeutral(in6_addr* v6, const in_addr v4, const in6_addr& nat64Prefix);
|
D | StrictControllerTest.cpp | 74 std::vector<std::string> v6 = { in TEST_F() local 101 std::string commands6 = android::base::Join(v6, '\n'); in TEST_F()
|
D | StrictController.cpp | 67 std::vector<std::string> v4, v6; in setupIptablesHooks() local 70 #define CMD_V6(...) { auto cmd = StringPrintf(__VA_ARGS__); v6.push_back(cmd); } in setupIptablesHooks() 133 res |= execIptablesRestore(V6, Join(v6, '\n')); in setupIptablesHooks()
|
D | TetherController.cpp | 742 std::vector<std::string> v6 = { in setForwardRules() local 750 v6.push_back(makeTetherCountingRule(intIface, extIface)); in setForwardRules() 751 v6.push_back(makeTetherCountingRule(extIface, intIface)); in setForwardRules() 763 v6.push_back("COMMIT\n"); in setForwardRules() 767 (add && iptablesRestoreFunction(V6, Join(v6, '\n'), nullptr) == -1)) { in setForwardRules()
|
/system/memory/libmemtrack/ |
D | memtrack_test.cpp | 69 size_t v6; in main() local 86 v6 = DIV_ROUND_UP(memtrack_proc_other_pss(p), 1024); in main() 88 if (v1 | v2 | v3 | v4 | v5 | v6) { in main() 89 fprintf(stdout, "%5d %6zu %6zu %6zu %6zu %6zu %6zu %s\n", pid, v1, v2, v3, v4, v5, v6, in main()
|
/system/netd/libnetdutils/ |
D | InternetAddresses.cpp | 45 const in6_addr v6 = mData.ip.v6; in toString() local 46 inet_ntop(AF_INET6, &v6, repr, sizeof(repr)); in toString() 110 mData.ip.v6.s6_addr[which] &= mask; in IPPrefix() 112 mData.ip.v6.s6_addr[i] = 0U; in IPPrefix()
|
/system/netd/libnetdutils/include/netdutils/ |
D | InternetAddresses.h | 42 in6_addr v6; member 43 } ip{.v6 = IN6ADDR_ANY_INIT}; // written and read in network-byte order 63 const in6_addr v6a = a.ip.v6; 64 const in6_addr v6b = b.ip.v6; 87 const in6_addr v6a = a.ip.v6; 88 const in6_addr v6b = b.ip.v6; 140 : mData({AF_INET6, IPV6_ADDR_BITS, 0U, 0U, {.v6 = ipv6}}) {} in IPAddress() 147 {.v6 = ipv6}}) {} in IPAddress() 149 mData.scope_id = (family() == AF_INET6 && usesScopedIds(mData.ip.v6)) ? scope_id : 0U; in IPAddress() 184 if (usesScopedIds(ipdata.ip.v6)) mData.scope_id = ipdata.scope_id; in IPAddress() [all …]
|
/system/netd/tests/ |
D | binder_test.cpp | 1435 const std::string v6 = "2001:db8:1:2:f076:ae99:124e:aa99"; in TEST_F() local 1436 EXPECT_EQ(0, sTun.addAddress(v6.c_str(), 64)); in TEST_F() 1463 EXPECT_EQ(0, ifc_del_address(sTun.name().c_str(), v6.c_str(), 64)); in TEST_F()
|