Home
last modified time | relevance | path

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

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