Home
last modified time | relevance | path

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

/system/netd/server/
DSockDiag.cpp309 int SockDiag::destroySockets(uint8_t proto, int family, const char* addrstr, int ifindex) { in destroySockets() argument
318 auto destroyAll = [ifindex](uint8_t, const inet_diag_msg* msg) { in destroySockets()
319 return ifindex == 0 || ifindex == (int)msg->id.idiag_if; in destroySockets()
325 int SockDiag::destroySockets(const char* addrstr, int ifindex) { in destroySockets() argument
330 if (ifindex) where += StringPrintf(" ifindex %d", ifindex); in destroySockets()
333 if (int ret = destroySockets(IPPROTO_TCP, AF_INET, addrstr, ifindex)) { in destroySockets()
338 if (int ret = destroySockets(IPPROTO_TCP, AF_INET6, addrstr, ifindex)) { in destroySockets()
DSockDiag.h73 int destroySockets(const char* addrstr, int ifindex);
94 int destroySockets(uint8_t proto, int family, const char* addrstr, int ifindex);
DRouteController.cpp174 int ifindex = iter->second; in getIfIndex() local
175 if (ifindex == ROUTE_TABLE_LOCAL_NETWORK) { in getIfIndex()
179 return ifindex - ROUTE_TABLE_OFFSET_FROM_INDEX; in getIfIndex()
373 uint32_t ifindex; in modifyIpRoute() local
390 ifindex = if_nametoindex(interface); in modifyIpRoute()
391 if (!ifindex) { in modifyIpRoute()
426 { &ifindex, interface != OIF_NONE ? sizeof(ifindex) : 0 }, in modifyIpRoute()
1071 uint32_t ifindex = if_nametoindex(interface); in maybeModifyQdiscClsact() local
1072 if (!ifindex) { in maybeModifyQdiscClsact()
1078 if (int ret = tcQdiscAddDevClsact(ifindex)) { in maybeModifyQdiscClsact()
[all …]
DNetworkController.cpp664 bool NetworkController::removeInterfaceAddress(unsigned ifindex, const char* address) { in removeInterfaceAddress() argument
669 ALOGE("Removing unknown address %s from ifindex %u", address, ifindex); in removeInterfaceAddress()
673 if (ifindices.erase(ifindex) > 0) { in removeInterfaceAddress()
680 ALOGE("No record of address %s on interface %u", address, ifindex); in removeInterfaceAddress()
684 if (mIfindexToLastNetId.find(ifindex) == mIfindexToLastNetId.end()) { in removeInterfaceAddress()
685 ALOGW("Interface index %u was never in a currently-connected non-local netId", ifindex); in removeInterfaceAddress()
688 unsigned lastNetId = mIfindexToLastNetId[ifindex]; in removeInterfaceAddress()
/system/netd/bpf_progs/
Dnetd.c212 if (allowed_iif && skb->ifindex != 1 && skb->ifindex != allowed_iif) { in bpf_owner_match()
265 StatsKey key = {.uid = uid, .tag = tag, .counterSet = 0, .ifaceIndex = skb->ifindex}; in bpf_traffic_account()
304 uint32_t key = skb->ifindex;
316 uint32_t key = skb->ifindex;
Dclatd.c79 .iif = skb->ifindex, in nat64()
255 .iif = skb->ifindex,
Dbpf_net_helpers.h49 static int (*bpf_redirect)(__u32 ifindex, __u64 flags) = (void*)BPF_FUNC_redirect;
/system/netd/tests/
Dtun_interface.h41 int ifindex() const { return mIfIndex; } in ifindex() function
Dbinder_test.cpp3779 TetherOffloadRuleParcel rule = makeTetherOffloadRule(sTun.ifindex(), tap.ifindex(), dstAddr, in TEST_F()
3787 status = mNetd->tetherOffloadSetInterfaceQuota(sTun.ifindex(), sizeof(pkt) * 2 - 1); in TEST_F()
3809 EXPECT_TRUE(mNetd->tetherOffloadGetAndClearStats(sTun.ifindex(), &tetherStats).isOk()); in TEST_F()
3815 EXPECT_EQ(sTun.ifindex(), tetherStats.ifIndex); in TEST_F()
/system/core/libnetutils/
Difc_utils.c262 int ifindex, s, len, ret; in ifc_act_on_address() local
279 ifindex = if_nametoindex(name); in ifc_act_on_address()
280 if (ifindex == 0) { in ifc_act_on_address()
316 req.r.ifa_index = ifindex; in ifc_act_on_address()
/system/hardware/interfaces/net/netd/1.1/vts/functional/
DVtsHalNetNetdV1_1TargetTest.cpp277 uint32_t table1 = 1000 + sTun1.ifindex(); in TEST_P()
278 uint32_t table2 = 1000 + sTun1.ifindex(); in TEST_P()
/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.cpp136 int ifindex = if_nametoindex(iface_name.c_str()); in GetWiphyIndex() local
137 if (ifindex == 0) { in GetWiphyIndex()
141 get_wiphy.AddAttribute(NL80211Attr<uint32_t>(NL80211_ATTR_IFINDEX, ifindex)); in GetWiphyIndex()