Lines Matching refs:tunnel
60 struct tun_data tunnel; in main() local
106 if (tunfd_str != NULL && !parse_int(tunfd_str, &tunnel.fd4)) { in main()
110 if (!tunnel.fd4) { in main()
115 len = snprintf(tunnel.device4, sizeof(tunnel.device4), "%s%s", DEVICEPREFIX, uplink_interface); in main()
116 if (len >= sizeof(tunnel.device4)) { in main()
117 logmsg(ANDROID_LOG_FATAL, "interface name too long '%s'", tunnel.device4); in main()
130 open_sockets(&tunnel, mark); in main()
135 configure_interface(uplink_interface, plat_prefix, v4_addr, v6_addr, &tunnel, mark); in main()
146 event_loop(&tunnel); in main()
149 del_anycast_address(tunnel.write_fd6, &Global_Clatd_Config.ipv6_local_subnet); in main()
151 close(tunnel.write_fd6); in main()
152 close(tunnel.read_fd6); in main()
153 close(tunnel.fd4); in main()