Home
last modified time | relevance | path

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

/system/netd/bpf_progs/
Dnetd.c32 uint32_t key = skb->ifindex; in xt_bpf_egress_prog()
39 uint32_t key = skb->ifindex; in xt_bpf_ingress_prog()
Dnetd.h190 if (allowed_iif && skb->ifindex != 1 && skb->ifindex != allowed_iif) { in bpf_owner_match()
226 stats_key key = {.uid = uid, .tag = tag, .counterSet = 0, .ifaceIndex = skb->ifindex}; in bpf_traffic_account()
Dclatd.c91 .iif = skb->ifindex, in nat64()
/system/netd/tests/
Dtun_interface.h36 int ifindex() const { return mIfIndex; } in ifindex() function
/system/netd/server/
DNetworkController.cpp615 bool NetworkController::removeInterfaceAddress(unsigned ifindex, const char* address) { in removeInterfaceAddress() argument
620 ALOGE("Removing unknown address %s from ifindex %u", address, ifindex); in removeInterfaceAddress()
624 if (ifindices.erase(ifindex) > 0) { in removeInterfaceAddress()
631 ALOGE("No record of address %s on interface %u", address, ifindex); in removeInterfaceAddress()
635 if (mIfindexToLastNetId.find(ifindex) == mIfindexToLastNetId.end()) { in removeInterfaceAddress()
636 ALOGE("Interface index %u was never in a currently-connected netId", ifindex); in removeInterfaceAddress()
639 unsigned lastNetId = mIfindexToLastNetId[ifindex]; in removeInterfaceAddress()
DRouteController.cpp360 uint32_t ifindex; in modifyIpRoute() local
377 ifindex = if_nametoindex(interface); in modifyIpRoute()
378 if (!ifindex) { in modifyIpRoute()
413 { &ifindex, interface != OIF_NONE ? sizeof(ifindex) : 0 }, in modifyIpRoute()
/system/bpf/progs/include/
Dbpf_helpers.h89 static int (*bpf_redirect)(__u32 ifindex, __u64 flags) = (void*)BPF_FUNC_redirect;
/system/core/libnetutils/
Difc_utils.c258 int ifindex, s, len, ret; in ifc_act_on_address() local
281 ifindex = if_nametoindex(name); in ifc_act_on_address()
282 if (ifindex == 0) { in ifc_act_on_address()
317 req.r.ifa_index = ifindex; in ifc_act_on_address()
/system/hardware/interfaces/net/netd/1.1/vts/functional/
DVtsHalNetNetdV1_1TargetTest.cpp291 uint32_t table1 = 1000 + sTun1.ifindex(); in TEST_F()
292 uint32_t table2 = 1000 + sTun1.ifindex(); in TEST_F()
/system/connectivity/wificond/scanning/
Dscan_utils.cpp88 NL80211Attr<uint32_t> ifindex(NL80211_ATTR_IFINDEX, interface_index); in GetScanResult() local
89 get_scan.AddAttribute(ifindex); in GetScanResult()
/system/connectivity/wificond/net/
Dnetlink_utils.cpp119 int ifindex = if_nametoindex(iface_name.c_str()); in GetWiphyIndex() local
120 get_wiphy.AddAttribute(NL80211Attr<uint32_t>(NL80211_ATTR_IFINDEX, ifindex)); in GetWiphyIndex()