Searched refs:ifc_ctl_sock6 (Results 1 - 1 of 1) sorted by relevance

/system/core/libnetutils/
H A Difc_utils.c59 static int ifc_ctl_sock6 = -1; variable
139 if (ifc_ctl_sock6 == -1) {
140 ifc_ctl_sock6 = socket(AF_INET6, SOCK_DGRAM, 0);
141 if (ifc_ctl_sock6 < 0) {
145 return ifc_ctl_sock6 < 0 ? -1 : 0;
159 if (ifc_ctl_sock6 != -1) {
160 (void)close(ifc_ctl_sock6);
161 ifc_ctl_sock6 = -1;
630 success = ioctl(ifc_ctl_sock6, SIOCKILLADDR, &ifr6);

Completed in 3 milliseconds