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

/system/core/libnetutils/
H A Difc_utils.c58 static int ifc_ctl_sock = -1; variable
125 if (ifc_ctl_sock == -1) {
126 ifc_ctl_sock = socket(AF_INET, SOCK_DGRAM, 0);
127 if (ifc_ctl_sock < 0) {
132 ret = ifc_ctl_sock < 0 ? -1 : 0;
151 if (ifc_ctl_sock != -1) {
152 (void)close(ifc_ctl_sock);
153 ifc_ctl_sock = -1;
178 r = ioctl(ifc_ctl_sock, SIOCGIFHWADDR, &ifr);
191 r = ioctl(ifc_ctl_sock, SIOCGIFINDE
[all...]

Completed in 3 milliseconds