D | clatd.c | 153 void configure_tun_ip(const struct tun_data *tunnel, const char *v4_addr) { in configure_tun_ip() argument 162 logmsg(ANDROID_LOG_INFO, "Using IPv4 address %s on %s", addrstr, tunnel->device4); in configure_tun_ip() 166 int status = add_address(tunnel->device4, AF_INET, &Global_Clatd_Config.ipv4_local_subnet, 32, in configure_tun_ip() 173 status = if_up(tunnel->device4, Global_Clatd_Config.ipv4mtu); in configure_tun_ip() 233 void open_sockets(struct tun_data *tunnel, uint32_t mark) { in open_sockets() argument 248 tunnel->write_fd6 = rawsock; in open_sockets() 250 tunnel->read_fd6 = ring_create(tunnel); in open_sockets() 251 if (tunnel->read_fd6 < 0) { in open_sockets() 322 int configure_clat_ipv6_address(const struct tun_data *tunnel, const char *interface, in configure_clat_ipv6_address() argument 337 add_anycast_address(tunnel->write_fd6, &Global_Clatd_Config.ipv6_local_subnet, interface); in configure_clat_ipv6_address() [all …]
|