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

/system/core/libnetutils/
H A Difc_utils.c53 static int ifc_ctl_sock = -1; variable
121 if (ifc_ctl_sock == -1) {
122 ifc_ctl_sock = socket(AF_INET, SOCK_DGRAM, 0);
123 if (ifc_ctl_sock < 0) {
128 ret = ifc_ctl_sock < 0 ? -1 : 0;
147 if (ifc_ctl_sock != -1) {
148 (void)close(ifc_ctl_sock);
149 ifc_ctl_sock = -1;
174 r = ioctl(ifc_ctl_sock, SIOCGIFHWADDR, &ifr);
187 r = ioctl(ifc_ctl_sock, SIOCGIFINDE
[all...]

Completed in 18 milliseconds