Searched defs:rt6 (Results 1 - 1 of 1) sorted by relevance

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

Completed in 48 milliseconds