Searched defs:interface_ip (Results 1 - 2 of 2) sorted by relevance
/external/android-clat/ |
H A D | config.c | 186 * interface_ip - in: interface ip, out: local ipv6 host address 188 void config_generate_local_ipv6_subnet(struct in6_addr *interface_ip) { argument 192 interface_ip->s6_addr32[i] = Global_Clatd_Config.ipv6_host_id.s6_addr32[i]; 202 union anyip *interface_ip; local 207 interface_ip = getinterface_ip(interface, AF_INET6); 208 if(!interface_ip) { 213 memcpy(&Global_Clatd_Config.ipv6_local_subnet, &interface_ip->ip6, sizeof(struct in6_addr)); 214 free(interface_ip);
|
H A D | clatd.c | 165 union anyip *interface_ip; local 167 interface_ip = getinterface_ip(Global_Clatd_Config.default_pdp_interface, AF_INET6); 168 if(!interface_ip) { 173 config_generate_local_ipv6_subnet(&interface_ip->ip6); 175 if(!IN6_ARE_ADDR_EQUAL(&interface_ip->ip6, &Global_Clatd_Config.ipv6_local_subnet)) { 178 inet_ntop(AF_INET6, &interface_ip->ip6, to_addr, sizeof(to_addr)); 185 memcpy(&Global_Clatd_Config.ipv6_local_subnet, &interface_ip->ip6, sizeof(struct in6_addr)); 189 free(interface_ip);
|
Completed in 68 milliseconds