D | clatd.c | 113 void configure_tun_ip(const struct tun_data *tunnel, const char *v4_addr, int mtu) { in configure_tun_ip() argument 121 logmsg(ANDROID_LOG_INFO, "Using IPv4 address %s on %s", addrstr, tunnel->device4); in configure_tun_ip() 125 int status = add_address(tunnel->device4, AF_INET, &Global_Clatd_Config.ipv4_local_subnet, 32, in configure_tun_ip() 132 status = if_up(tunnel->device4, mtu); in configure_tun_ip() 192 void open_sockets(struct tun_data *tunnel, uint32_t mark) { in open_sockets() argument 203 tunnel->write_fd6 = rawsock; in open_sockets() 205 tunnel->read_fd6 = ring_create(tunnel); in open_sockets() 206 if (tunnel->read_fd6 < 0) { in open_sockets() 240 int configure_clat_ipv6_address(const struct tun_data *tunnel, const char *interface, in configure_clat_ipv6_address() argument 252 add_anycast_address(tunnel->write_fd6, &Global_Clatd_Config.ipv6_local_subnet, interface); in configure_clat_ipv6_address() [all …]
|