Searched refs:plat_subnet (Results 1 – 4 of 4) sorted by relevance
/external/android-clat/ |
D | config.c | 177 memcpy(&Global_Clatd_Config.plat_subnet, &tmp_ptr, sizeof(struct in6_addr)); in dns64_detection() 196 struct in6_addr *plat_subnet) { in gen_random_iid() argument 209 uint32_t c2 = ip_checksum_add(0, plat_subnet, sizeof(*plat_subnet)) + in gen_random_iid() 284 &Global_Clatd_Config.plat_subnet); in config_generate_local_ipv6_subnet() 338 if(inet_pton(AF_INET6, plat_prefix, &Global_Clatd_Config.plat_subnet) <= 0) { in read_config() 347 if(!config_item_ip6(root, "plat_subnet", NULL, &Global_Clatd_Config.plat_subnet)) { in read_config() 393 …logmsg(ANDROID_LOG_DEBUG,"plat_subnet = %s",inet_ntop(AF_INET6, &Global_Clatd_Config.plat_subnet, … in dump_config()
|
D | clatd_test.cpp | 562 inet_pton(AF_INET6, kIPv6PlatSubnet, &Global_Clatd_Config.plat_subnet); in SetUp() 583 EXPECT_TRUE(ipv6_prefix_equal(&Global_Clatd_Config.plat_subnet, in TEST_F() 584 &Global_Clatd_Config.plat_subnet)); in TEST_F() 585 EXPECT_FALSE(ipv6_prefix_equal(&Global_Clatd_Config.plat_subnet, in TEST_F() 661 struct in6_addr *plat_subnet = &Global_Clatd_Config.plat_subnet; in TEST_F() local 664 uint16_t c2 = ip_checksum_finish(ip_checksum_add(0, plat_subnet, sizeof(*plat_subnet)) + in TEST_F() 670 inet_ntop(AF_INET6, plat_subnet, plat_str, sizeof(plat_str)); in TEST_F()
|
D | config.h | 34 struct in6_addr plat_subnet; member
|
D | translate.c | 67 return (addr6 != NULL) && (memcmp(addr6, &Global_Clatd_Config.plat_subnet, 12) == 0); in is_in_plat_subnet() 100 addr6 = Global_Clatd_Config.plat_subnet; in ipv4_addr_to_ipv6_addr()
|