Searched refs:Global_Clatd_Config (Results 1 – 6 of 6) sorted by relevance
/external/android-clat/ |
D | config.c | 37 struct clat_config Global_Clatd_Config; variable 148 if(Global_Clatd_Config.plat_from_dns64_hostname) { in free_config() 149 free(Global_Clatd_Config.plat_from_dns64_hostname); in free_config() 150 Global_Clatd_Config.plat_from_dns64_hostname = NULL; in free_config() 175 status = plat_prefix(Global_Clatd_Config.plat_from_dns64_hostname,net_id,&tmp_ptr); in dns64_detection() 177 memcpy(&Global_Clatd_Config.plat_subnet, &tmp_ptr, sizeof(struct in6_addr)); in dns64_detection() 280 if (Global_Clatd_Config.use_dynamic_iid) { in config_generate_local_ipv6_subnet() 283 &Global_Clatd_Config.ipv4_local_subnet, in config_generate_local_ipv6_subnet() 284 &Global_Clatd_Config.plat_subnet); in config_generate_local_ipv6_subnet() 288 interface_ip->s6_addr32[i] = Global_Clatd_Config.ipv6_host_id.s6_addr32[i]; in config_generate_local_ipv6_subnet() [all …]
|
D | clatd.c | 78 .sll_ifindex = if_nametoindex(Global_Clatd_Config.default_pdp_interface), in configure_packet_socket() 86 uint32_t *ipv6 = Global_Clatd_Config.ipv6_local_subnet.s6_addr32; in configure_packet_socket() 130 in_addr_t localaddr = config_select_ipv4_address(&Global_Clatd_Config.ipv4_local_subnet, in configure_tun_ip() 131 Global_Clatd_Config.ipv4_local_prefixlen); in configure_tun_ip() 134 inet_ntoa(Global_Clatd_Config.ipv4_local_subnet), in configure_tun_ip() 135 Global_Clatd_Config.ipv4_local_prefixlen); in configure_tun_ip() 138 Global_Clatd_Config.ipv4_local_subnet.s_addr = localaddr; in configure_tun_ip() 142 status = add_address(tunnel->device4, AF_INET, &Global_Clatd_Config.ipv4_local_subnet, in configure_tun_ip() 143 32, &Global_Clatd_Config.ipv4_local_subnet); in configure_tun_ip() 150 inet_ntop(AF_INET, &Global_Clatd_Config.ipv4_local_subnet, addrstr, sizeof(addrstr)); in configure_tun_ip() [all …]
|
D | clatd_test.cpp | 556 struct clat_config Global_Clatd_Config; variable 561 inet_pton(AF_INET, kIPv4LocalAddr, &Global_Clatd_Config.ipv4_local_subnet); in SetUp() 562 inet_pton(AF_INET6, kIPv6PlatSubnet, &Global_Clatd_Config.plat_subnet); in SetUp() 563 inet_pton(AF_INET6, kIPv6LocalAddr, &Global_Clatd_Config.ipv6_local_subnet); in SetUp() 564 Global_Clatd_Config.ipv6_host_id = in6addr_any; in SetUp() 565 Global_Clatd_Config.use_dynamic_iid = 1; 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() 586 &Global_Clatd_Config.ipv6_local_subnet)); in TEST_F() [all …]
|
D | translate.c | 67 return (addr6 != NULL) && (memcmp(addr6, &Global_Clatd_Config.plat_subnet, 12) == 0); in is_in_plat_subnet() 79 } else if (IN6_ARE_ADDR_EQUAL(addr6, &Global_Clatd_Config.ipv6_local_subnet)) { in ipv6_addr_to_ipv4_addr() 81 return Global_Clatd_Config.ipv4_local_subnet.s_addr; in ipv6_addr_to_ipv4_addr() 96 if (addr4 == Global_Clatd_Config.ipv4_local_subnet.s_addr) { in ipv4_addr_to_ipv6_addr() 97 return Global_Clatd_Config.ipv6_local_subnet; in ipv4_addr_to_ipv6_addr() 100 addr6 = Global_Clatd_Config.plat_subnet; in ipv4_addr_to_ipv6_addr()
|
D | ipv6.c | 105 IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, &Global_Clatd_Config.ipv6_local_subnet)) && in ipv6_packet() 107 IN6_ARE_ADDR_EQUAL(&ip6->ip6_src, &Global_Clatd_Config.ipv6_local_subnet)) && in ipv6_packet()
|
D | config.h | 40 extern struct clat_config Global_Clatd_Config;
|