Home
last modified time | relevance | path

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

/frameworks/opt/net/wifi/libwifi_system_iface/
Dinterface_tool.cpp43 bool GetIfState(const char* if_name, int sock, struct ifreq* ifr) { in GetIfState() argument
44 memset(ifr, 0, sizeof(*ifr)); in GetIfState()
45 if (strlcpy(ifr->ifr_name, if_name, sizeof(ifr->ifr_name)) >= in GetIfState()
46 sizeof(ifr->ifr_name)) { in GetIfState()
51 if (TEMP_FAILURE_RETRY(ioctl(sock, SIOCGIFFLAGS, ifr)) != 0) { in GetIfState()
70 struct ifreq ifr; in GetUpState() local
71 if (!GetIfState(if_name, sock.get(), &ifr)) { in GetUpState()
75 return ifr.ifr_flags & IFF_UP; in GetUpState()
86 struct ifreq ifr; in SetUpState() local
87 if (!GetIfState(if_name, sock.get(), &ifr)) { in SetUpState()
[all …]