Home
last modified time | relevance | path

Searched refs:rt6 (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/services/jni/
Dcom_android_server_connectivity_Vpn.cpp204 in6_rtmsg rt6; in set_routes() local
205 memset(&rt6, 0, sizeof(rt6)); in set_routes()
206 rt6.rtmsg_ifindex = index; in set_routes()
207 rt6.rtmsg_flags = RTF_UP; in set_routes()
219 if (inet_pton(AF_INET6, address, &rt6.rtmsg_dst) != 1 || in set_routes()
225 rt6.rtmsg_dst_len = prefix ? prefix : 1; in set_routes()
226 if (ioctl(inet6, SIOCADDRT, &rt6) && errno != EEXIST) { in set_routes()
233 rt6.rtmsg_dst.s6_addr[0] ^= 0x80; in set_routes()
234 if (ioctl(inet6, SIOCADDRT, &rt6) && errno != EEXIST) { in set_routes()