OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:interface_ip
(Results
1 - 3
of
3
) sorted by null
/external/android-clat/
config.h
43
void config_generate_local_ipv6_subnet(struct in6_addr *
interface_ip
);
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
) {
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
);
clatd.c
151
union anyip *
interface_ip
;
local
153
interface_ip
= getinterface_ip(Global_Clatd_Config.default_pdp_interface, AF_INET6);
154
if(!
interface_ip
) {
159
config_generate_local_ipv6_subnet(&
interface_ip
->ip6);
161
if(!IN6_ARE_ADDR_EQUAL(&
interface_ip
->ip6, &Global_Clatd_Config.ipv6_local_subnet)) {
164
inet_ntop(AF_INET6, &
interface_ip
->ip6, to_addr, sizeof(to_addr));
171
memcpy(&Global_Clatd_Config.ipv6_local_subnet, &
interface_ip
->ip6, sizeof(struct in6_addr));
175
free(
interface_ip
);
Completed in 750 milliseconds