Searched refs:socket_afnet (Results 1 – 4 of 4) sorted by relevance
/external/dhcpcd/ |
D | net.c | 75 int socket_afnet = -1; variable 86 if (ioctl(socket_afnet, SIOCGIFINDEX, &ifr) != -1) in if_nametoindex() 208 if (ioctl(socket_afnet, SIOCGIFFLAGS, &ifr) == -1) in init_interface() 222 if (ioctl(socket_afnet, SIOCGIFMTU, &ifr) == -1) in init_interface() 228 if (ioctl(socket_afnet, SIOCSIFMTU, &ifr) == -1) in init_interface() 285 if (ioctl(socket_afnet, SIOCGIFFLAGS, &ifr) == -1) in carrier_status() 293 if (ioctl(socket_afnet, SIOCGIFMEDIA, &ifmr) != -1 && in carrier_status() 318 if (ioctl(socket_afnet, SIOCGIFFLAGS, &ifr) == 0) { in up_interface() 323 if (ioctl(socket_afnet, SIOCSIFFLAGS, &ifr) == 0) in up_interface() 590 r = ioctl(socket_afnet, mtu ? SIOCSIFMTU : SIOCGIFMTU, &ifr); in do_mtu()
|
D | if-bsd.c | 105 if ((socket_afnet = socket(AF_INET, SOCK_DGRAM, 0)) == -1) in init_sockets() 107 set_cloexec(socket_afnet); in init_sockets() 131 if (ioctl(socket_afnet, SIOCG80211NWID, &ifr) == 0) { in getifssid() 143 if (ioctl(socket_afnet, SIOCG80211, &ireq) == 0) { in getifssid() 182 retval = ioctl(socket_afnet, SIOCDIFADDR, &ifa); in if_address() 184 retval = ioctl(socket_afnet, SIOCAIFADDR, &ifa); in if_address()
|
D | net.h | 92 extern int socket_afnet;
|
D | if-linux.c | 130 if ((socket_afnet = socket(AF_INET, SOCK_DGRAM, 0)) == -1) in init_sockets() 132 set_cloexec(socket_afnet); in init_sockets()
|