Lines Matching defs:Global_Clatd_Config
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));
588 struct in6_addr subnet2 = Global_Clatd_Config.ipv6_local_subnet;
589 EXPECT_TRUE(ipv6_prefix_equal(&Global_Clatd_Config.ipv6_local_subnet, &subnet2));
590 EXPECT_TRUE(ipv6_prefix_equal(&subnet2, &Global_Clatd_Config.ipv6_local_subnet));
593 EXPECT_FALSE(ipv6_prefix_equal(&Global_Clatd_Config.ipv6_local_subnet, &subnet2));
594 EXPECT_FALSE(ipv6_prefix_equal(&subnet2, &Global_Clatd_Config.ipv6_local_subnet));
622 Global_Clatd_Config.use_dynamic_iid = 0;
623 ASSERT_TRUE(inet_pton(AF_INET6, "::bad:ace:d00d", &Global_Clatd_Config.ipv6_host_id));
629 Global_Clatd_Config.use_dynamic_iid = 1;
637 Global_Clatd_Config.ipv6_host_id = in6addr_any;
660 struct in_addr *ipv4addr = &Global_Clatd_Config.ipv4_local_subnet;
661 struct in6_addr *plat_subnet = &Global_Clatd_Config.plat_subnet;
915 Global_Clatd_Config.ipv6_host_id = in6addr_any;
917 &Global_Clatd_Config.ipv6_local_subnet));
918 config_generate_local_ipv6_subnet(&Global_Clatd_Config.ipv6_local_subnet);
919 ASSERT_NE((uint32_t) 0x00000464, Global_Clatd_Config.ipv6_local_subnet.s6_addr32[3]);
920 ASSERT_NE((uint32_t) 0, Global_Clatd_Config.ipv6_local_subnet.s6_addr32[3]);
932 memcpy(&ip6->ip6_src, &Global_Clatd_Config.ipv6_local_subnet, sizeof(ip6->ip6_src));