Searched refs:ifc_ctl_sock (Results 1 – 1 of 1) sorted by relevance
58 static int ifc_ctl_sock = -1; variable125 if (ifc_ctl_sock == -1) { in ifc_init()126 ifc_ctl_sock = socket(AF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0); in ifc_init()127 if (ifc_ctl_sock < 0) { in ifc_init()132 ret = ifc_ctl_sock < 0 ? -1 : 0; in ifc_init()151 if (ifc_ctl_sock != -1) { in ifc_close()152 (void)close(ifc_ctl_sock); in ifc_close()153 ifc_ctl_sock = -1; in ifc_close()178 r = ioctl(ifc_ctl_sock, SIOCGIFHWADDR, &ifr); in ifc_get_hwaddr()191 r = ioctl(ifc_ctl_sock, SIOCGIFINDEX, &ifr); in ifc_get_ifindex()[all …]