HomeSort by relevance Sort by last modified time
    Searched refs:Global_Clatd_Config (Results 1 - 6 of 6) sorted by null

  /external/android-clat/
config.c 37 struct clat_config Global_Clatd_Config;
148 if(Global_Clatd_Config.plat_from_dns64_hostname) {
149 free(Global_Clatd_Config.plat_from_dns64_hostname);
150 Global_Clatd_Config.plat_from_dns64_hostname = NULL;
175 status = plat_prefix(Global_Clatd_Config.plat_from_dns64_hostname,net_id,&tmp_ptr);
177 memcpy(&Global_Clatd_Config.plat_subnet, &tmp_ptr, sizeof(struct in6_addr));
280 if (Global_Clatd_Config.use_dynamic_iid) {
283 &Global_Clatd_Config.ipv4_local_subnet,
284 &Global_Clatd_Config.plat_subnet);
288 interface_ip->s6_addr32[i] = Global_Clatd_Config.ipv6_host_id.s6_addr32[i]
    [all...]
clatd.c 78 .sll_ifindex = if_nametoindex(Global_Clatd_Config.default_pdp_interface),
86 uint32_t *ipv6 = Global_Clatd_Config.ipv6_local_subnet.s6_addr32;
130 in_addr_t localaddr = config_select_ipv4_address(&Global_Clatd_Config.ipv4_local_subnet,
131 Global_Clatd_Config.ipv4_local_prefixlen);
134 inet_ntoa(Global_Clatd_Config.ipv4_local_subnet),
135 Global_Clatd_Config.ipv4_local_prefixlen);
138 Global_Clatd_Config.ipv4_local_subnet.s_addr = localaddr;
142 status = add_address(tunnel->device4, AF_INET, &Global_Clatd_Config.ipv4_local_subnet,
143 32, &Global_Clatd_Config.ipv4_local_subnet);
150 inet_ntop(AF_INET, &Global_Clatd_Config.ipv4_local_subnet, addrstr, sizeof(addrstr))
    [all...]
config.h 40 extern struct clat_config Global_Clatd_Config;
clatd_test.cpp 556 struct clat_config Global_Clatd_Config;
561 inet_pton(AF_INET, kIPv4LocalAddr, &Global_Clatd_Config.ipv4_local_subnet);
562 inet_pton(AF_INET6, kIPv6PlatSubnet, &Global_Clatd_Config.plat_subnet);
563 inet_pton(AF_INET6, kIPv6LocalAddr, &Global_Clatd_Config.ipv6_local_subnet);
564 Global_Clatd_Config.ipv6_host_id = in6addr_any;
565 Global_Clatd_Config.use_dynamic_iid = 1;
583 EXPECT_TRUE(ipv6_prefix_equal(&Global_Clatd_Config.plat_subnet,
584 &Global_Clatd_Config.plat_subnet));
585 EXPECT_FALSE(ipv6_prefix_equal(&Global_Clatd_Config.plat_subnet,
586 &Global_Clatd_Config.ipv6_local_subnet))
    [all...]
translate.c 67 return (addr6 != NULL) && (memcmp(addr6, &Global_Clatd_Config.plat_subnet, 12) == 0);
79 } else if (IN6_ARE_ADDR_EQUAL(addr6, &Global_Clatd_Config.ipv6_local_subnet)) {
81 return Global_Clatd_Config.ipv4_local_subnet.s_addr;
96 if (addr4 == Global_Clatd_Config.ipv4_local_subnet.s_addr) {
97 return Global_Clatd_Config.ipv6_local_subnet;
100 addr6 = Global_Clatd_Config.plat_subnet;
ipv6.c 105 IN6_ARE_ADDR_EQUAL(&ip6->ip6_dst, &Global_Clatd_Config.ipv6_local_subnet)) &&
107 IN6_ARE_ADDR_EQUAL(&ip6->ip6_src, &Global_Clatd_Config.ipv6_local_subnet)) &&

Completed in 215 milliseconds