Home
last modified time | relevance | path

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

/device/generic/goldfish/network/netmgr/
Dmonitor.cpp192 const unsigned int ifIndex = msg->ifi_index; in handleNewLink() local
193 if (if_indextoname(ifIndex, name) == nullptr) { in handleNewLink()
194 LOGE("Unable to get interface name for interface index %u", ifIndex); in handleNewLink()
198 auto iterator = mUpInterfaces.find(ifIndex); in handleNewLink()
202 mUpInterfaces.insert(ifIndex); in handleNewLink()
203 mOnInterfaceStateCallback(ifIndex, name, InterfaceState::Up); in handleNewLink()
207 mOnInterfaceStateCallback(ifIndex, name, InterfaceState::Down); in handleNewLink()
/device/generic/goldfish/radio/ril/
Dif_monitor.cpp174 unsigned int ifIndex = if_nametoindex(cur->ifa_name); in requestAddresses() local
175 if (ifIndex == 0) { in requestAddresses()
186 mAddresses[ifIndex].push_back(addr); in requestAddresses()
317 std::string getInterfaceName(unsigned int ifIndex) { in getInterfaceName() argument
319 return if_indextoname(ifIndex, buffer); in getInterfaceName()
Dreference-ril.c4021 static void onInterfaceAddressChange(unsigned int ifIndex, argument
4031 if (if_indextoname(ifIndex, ifName) == NULL) {
4032 RLOGE("Unable to get interface name for interface %u", ifIndex);