Home | History | Annotate | Download | only in android-clat

Lines Matching refs:Global_Clatd_Config

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));
153 if((status = if_up(tunnel->device4, Global_Clatd_Config.ipv4mtu)) < 0) {
241 // address, Global_Clatd_Config.ipv6_local_subnet will be ::, which won't match our new prefix.)
242 if (ipv6_prefix_equal(&interface_ip->ip6, &Global_Clatd_Config.ipv6_local_subnet)) {
251 if (IN6_IS_ADDR_UNSPECIFIED(&Global_Clatd_Config.ipv6_local_subnet)) {
257 inet_ntop(AF_INET6, &Global_Clatd_Config.ipv6_local_subnet, from_addr, sizeof(from_addr));
259 del_anycast_address(tunnel->write_fd6, &Global_Clatd_Config.ipv6_local_subnet);
263 Global_Clatd_Config.ipv6_local_subnet = interface_ip->ip6;
264 add_anycast_address(tunnel->write_fd6, &Global_Clatd_Config.ipv6_local_subnet, interface);
292 if(Global_Clatd_Config.mtu > MAXMTU) {
293 logmsg(ANDROID_LOG_WARN,"Max MTU is %d, requested %d", MAXMTU, Global_Clatd_Config.mtu);
294 Global_Clatd_Config.mtu = MAXMTU;
296 if(Global_Clatd_Config.mtu <= 0) {
297 Global_Clatd_Config.mtu = getifmtu(Global_Clatd_Config.default_pdp_interface);
298 logmsg(ANDROID_LOG_WARN,"ifmtu=%d",Global_Clatd_Config.mtu);
300 if(Global_Clatd_Config.mtu < 1280) {
301 logmsg(ANDROID_LOG_WARN,"mtu too small = %d", Global_Clatd_Config.mtu);
302 Global_Clatd_Config.mtu = 1280;
305 if(Global_Clatd_Config.ipv4mtu <= 0 ||
306 Global_Clatd_Config.ipv4mtu > Global_Clatd_Config.mtu - MTU_DELTA) {
307 Global_Clatd_Config.ipv4mtu = Global_Clatd_Config.mtu - MTU_DELTA;
308 logmsg(ANDROID_LOG_WARN,"ipv4mtu now set to = %d",Global_Clatd_Config.ipv4mtu);
405 update_clat_ipv6_address(tunnel, Global_Clatd_Config.default_pdp_interface);
523 del_anycast_address(tunnel.write_fd6, &Global_Clatd_Config.ipv6_local_subnet);