/system/netd/server/ |
D | ClatdController.cpp | 181 void ClatdController::makeChecksumNeutral(in6_addr* v6, const in_addr v4, in makeChecksumNeutral() argument 184 arc4random_buf(&v6->s6_addr[8], 8); in makeChecksumNeutral() 192 uint16_t middlebytes = (v6->s6_addr[11] << 8) + v6->s6_addr[12]; in makeChecksumNeutral() 196 ip_checksum_add(0, v6, sizeof(*v6)); in makeChecksumNeutral() 199 v6->s6_addr[11] = delta >> 8; in makeChecksumNeutral() 200 v6->s6_addr[12] = delta & 0xff; in makeChecksumNeutral() 205 const in6_addr& nat64Prefix, in6_addr* v6) { in generateIpv6Address() argument 223 *v6 = sin6.sin6_addr; in generateIpv6Address() 225 if (IN6_IS_ADDR_UNSPECIFIED(v6) || IN6_IS_ADDR_LOOPBACK(v6) || IN6_IS_ADDR_LINKLOCAL(v6) || in generateIpv6Address() 226 IN6_IS_ADDR_SITELOCAL(v6) || IN6_IS_ADDR_ULA(v6)) { in generateIpv6Address() [all …]
|
D | ClatdControllerTest.cpp | 155 in6_addr v6 = v6InterfaceAddr; in TEST_F() local 156 makeChecksumNeutral(&v6, v4, nat64Prefix); in TEST_F() 159 EXPECT_EQ(0, memcmp(&v6, &v6InterfaceAddr, 8)); in TEST_F() 162 uint64_t iid = *(uint64_t*)(&v6.s6_addr[8]); in TEST_F() 172 ip_checksum_add(0, &v6, sizeof(v6))); in TEST_F() 176 inet_ntop(AF_INET6, &v6, v6Str, sizeof(v6Str)); in TEST_F()
|
D | ClatdController.h | 70 in6_addr v6; member 87 in6_addr* v6); 88 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 | 719 std::vector<std::string> v6 = { in setForwardRules() local 727 v6.push_back(makeTetherCountingRule(intIface, extIface)); in setForwardRules() 728 v6.push_back(makeTetherCountingRule(extIface, intIface)); in setForwardRules() 740 v6.push_back("COMMIT\n"); in setForwardRules() 744 (add && iptablesRestoreFunction(V6, Join(v6, '\n'), nullptr) == -1)) { in setForwardRules()
|
/system/netd/libnetdutils/ |
D | InternetAddresses.cpp | 43 const in6_addr v6 = mData.ip.v6; in toString() local 44 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/core/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/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; 130 : mData({AF_INET6, IPV6_ADDR_BITS, 0U, 0U, {.v6 = ipv6}}) {} in IPAddress() 137 {.v6 = ipv6}}) {} in IPAddress() 139 mData.scope_id = (family() == AF_INET6 && usesScopedIds(mData.ip.v6)) ? scope_id : 0U; in IPAddress() 174 if (usesScopedIds(ipdata.ip.v6)) mData.scope_id = ipdata.scope_id; in IPAddress() [all …]
|
/system/netd/tests/ |
D | binder_test.cpp | 1306 const std::string v6 = "2001:db8:1:2:f076:ae99:124e:aa99"; in TEST_F() local 1307 EXPECT_EQ(0, sTun.addAddress(v6.c_str(), 64)); in TEST_F() 1334 EXPECT_EQ(0, ifc_del_address(sTun.name().c_str(), v6.c_str(), 64)); in TEST_F()
|