Searched refs:ifindex (Results 1 - 8 of 8) sorted by relevance

/system/netd/bpfloader/
H A Dbpf_kern.c33 uint32_t key = skb->ifindex;
40 uint32_t key = skb->ifindex;
H A Dbpf_kern.h186 struct stats_key key = {.uid = uid, .tag = tag, .counterSet = 0, .ifaceIndex = skb->ifindex};
/system/netd/tests/
H A Dtun_interface.h36 int ifindex() const { return mIfIndex; } function in class:android::net::TunInterface
/system/netd/server/
H A DNetworkController.cpp614 ALOGE("Attempting to add address %s without ifindex", address);
621 bool NetworkController::removeInterfaceAddress(unsigned ifindex, const char* address) { argument
626 ALOGE("Removing unknown address %s from ifindex %u", address, ifindex);
630 if (ifindices.erase(ifindex) > 0) {
635 ALOGE("No record of address %s on interface %u", address, ifindex);
639 if (mIfindexToLastNetId.find(ifindex) == mIfindexToLastNetId.end()) {
640 ALOGE("Interface index %u was never in a currently-connected netId", ifindex);
643 unsigned lastNetId = mIfindexToLastNetId[ifindex];
H A DRouteController.cpp359 uint32_t ifindex; local
374 // If an interface was specified, find the ifindex.
376 ifindex = if_nametoindex(interface);
377 if (!ifindex) {
412 { &ifindex, interface != OIF_NONE ? sizeof(ifindex) : 0 },
/system/core/libnetutils/
H A Difc_utils.c258 int ifindex, s, len, ret; local
281 ifindex = if_nametoindex(name);
282 if (ifindex == 0) {
317 req.r.ifa_index = ifindex;
/system/connectivity/wificond/scanning/
H A Dscan_utils.cpp85 NL80211Attr<uint32_t> ifindex(NL80211_ATTR_IFINDEX, interface_index);
86 get_scan.AddAttribute(ifindex);
/system/hardware/interfaces/net/netd/1.1/vts/functional/
H A DVtsHalNetNetdV1_1TargetTest.cpp291 uint32_t table1 = 1000 + sTun1.ifindex();
292 uint32_t table2 = 1000 + sTun1.ifindex();

Completed in 1783 milliseconds