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

/bionic/libc/bionic/
H A Dif_indextoname.c44 int ctl_sock; local
51 if ((ctl_sock = socket(AF_INET, SOCK_DGRAM, 0)) >= 0) {
52 if (ioctl(ctl_sock, SIOCGIFNAME, &ifr) >= 0) {
59 close(ctl_sock);
H A Dif_nametoindex.c43 int ctl_sock; local
51 if ((ctl_sock = socket(AF_INET, SOCK_DGRAM, 0)) >= 0) {
52 if (ioctl(ctl_sock, SIOCGIFINDEX, &ifr) >= 0) {
55 close(ctl_sock);

Completed in 44 milliseconds