Home
last modified time | relevance | path

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

/system/netd/server/
DOffloadUtils.h93 int doTcQdiscClsact(int ifIndex, uint16_t nlMsgType, uint16_t nlMsgFlags);
95 inline int tcQdiscAddDevClsact(int ifIndex) { in tcQdiscAddDevClsact() argument
96 return doTcQdiscClsact(ifIndex, RTM_NEWQDISC, NLM_F_EXCL | NLM_F_CREATE); in tcQdiscAddDevClsact()
99 inline int tcQdiscReplaceDevClsact(int ifIndex) { in tcQdiscReplaceDevClsact() argument
100 return doTcQdiscClsact(ifIndex, RTM_NEWQDISC, NLM_F_CREATE | NLM_F_REPLACE); in tcQdiscReplaceDevClsact()
103 inline int tcQdiscDelDevClsact(int ifIndex) { in tcQdiscDelDevClsact() argument
104 return doTcQdiscClsact(ifIndex, RTM_DELQDISC, 0); in tcQdiscDelDevClsact()
109 int tcFilterAddDevBpf(int ifIndex, bool ingress, uint16_t prio, uint16_t proto, int bpfFd,
113 inline int tcFilterAddDevIngressClatIpv6(int ifIndex, int bpfFd, bool ethernet) { in tcFilterAddDevIngressClatIpv6() argument
114 return tcFilterAddDevBpf(ifIndex, INGRESS, PRIO_CLAT, ETH_P_IPV6, bpfFd, ethernet); in tcFilterAddDevIngressClatIpv6()
[all …]
DNetlinkHandler.cpp88 static long parseIfIndex(const char* ifIndex) { in parseIfIndex() argument
89 if (ifIndex == nullptr) { in parseIfIndex()
92 long ifaceIndex = strtol(ifIndex, nullptr, 10); in parseIfIndex()
113 const char *ifIndex = evt->findParam("IFINDEX"); in onEvent() local
114 long ifaceIndex = parseIfIndex(ifIndex); in onEvent()
118 ALOGE("invalid interface index: %s(%s)", iface, ifIndex); in onEvent()
138 const char *ifIndex = evt->findParam("IFINDEX"); in onEvent() local
146 long ifaceIndex = parseIfIndex(ifIndex); in onEvent()
148 ALOGE("invalid interface index: %s(%s)", iface, ifIndex); in onEvent()
DTetherController.cpp1036 statsList.push_back({.ifIndex = static_cast<int>(key), in getTetherOffloadStats()
1054 Result<void> TetherController::setBpfLimit(uint32_t ifIndex, uint64_t limit) { in setBpfLimit() argument
1059 auto statsEntry = mBpfStatsMap.readValue(ifIndex); in setBpfLimit()
1069 auto ret = mBpfStatsMap.writeValue(ifIndex, stats, BPF_NOEXIST); in setBpfLimit()
1087 auto ret = mBpfLimitMap.writeValue(ifIndex, newLimit, BPF_ANY); in setBpfLimit()
1100 int ifIndex = if_nametoindex(extIface); in maybeStartBpf() local
1101 if (!ifIndex) { in maybeStartBpf()
1108 ALOGE("isEthernet(%s[%d]) failure: %s", extIface, ifIndex, in maybeStartBpf()
1120 rv = tcFilterAddDevIngressTether(ifIndex, tetherProgFd, isEthernet.value()); in maybeStartBpf()
1122 ALOGE("tcFilterAddDevIngressTether(%d[%s], %d) failure: %s", ifIndex, extIface, in maybeStartBpf()
[all …]
DOffloadUtils.cpp153 int doTcQdiscClsact(int ifIndex, uint16_t nlMsgType, uint16_t nlMsgFlags) { in doTcQdiscClsact() argument
178 .tcm_ifindex = ifIndex, in doTcQdiscClsact()
199 int tcFilterAddDevBpf(int ifIndex, bool ingress, uint16_t prio, uint16_t proto, int bpfFd, in tcFilterAddDevBpf() argument
305 .tcm_ifindex = ifIndex, in tcFilterAddDevBpf()
366 int tcFilterDelDev(int ifIndex, bool ingress, uint16_t prio, uint16_t proto) { in tcFilterDelDev() argument
380 .tcm_ifindex = ifIndex, in tcFilterDelDev()
DTetherController.h111 int setTetherOffloadInterfaceQuota(int ifIndex, int64_t maxBytes);
142 int ifIndex; member
154 base::Result<TetherOffloadStats> getAndClearTetherOffloadStats(int ifIndex);
198 base::Result<void> setBpfLimit(uint32_t ifIndex, uint64_t limit);
DClatdController.cpp233 ALOGE("isEthernet(%s[%d]) failure: %s", tracker.iface, tracker.ifIndex, in maybeStartBpf()
258 .oif = tracker.ifIndex, in maybeStartBpf()
271 .iif = tracker.ifIndex, in maybeStartBpf()
333 rv = tcFilterAddDevIngressClatIpv6(tracker.ifIndex, rxProgFd, isEthernet.value()); in maybeStartBpf()
336 ALOGI("tcFilterAddDevIngressClatIpv6(%d[%s], %d): %s", tracker.ifIndex, tracker.iface, in maybeStartBpf()
339 ALOGE("tcFilterAddDevIngressClatIpv6(%d[%s], %d) failure: %s", tracker.ifIndex, in maybeStartBpf()
377 int rv = tcFilterDelDevIngressClatIpv6(tracker.ifIndex); in maybeStopBpf()
379 ALOGE("tcFilterDelDevIngressClatIpv6(%d[%s]) failure: %s", tracker.ifIndex, tracker.iface, in maybeStopBpf()
401 .iif = tracker.ifIndex, in maybeStopBpf()
428 ifIndex = if_nametoindex(iface); in init()
[all …]
DNetworkController.cpp154 if (int ifIndex = if_nametoindex(iface.c_str())) { local
156 tcQdiscDelDevClsact(ifIndex);
516 int ifIndex = RouteController::getIfIndex(interface); in addInterfaceToNetwork() local
517 if (ifIndex) { in addInterfaceToNetwork()
518 mIfindexToLastNetId[ifIndex] = netId; in addInterfaceToNetwork()
627 void NetworkController::addInterfaceAddress(unsigned ifIndex, const char* address) { in addInterfaceAddress() argument
629 if (ifIndex == 0) { in addInterfaceAddress()
633 mAddressToIfindices[address].insert(ifIndex); in addInterfaceAddress()
DNetworkController.h135 void addInterfaceAddress(unsigned ifIndex, const char* address);
138 bool removeInterfaceAddress(unsigned ifIndex, const char* address);
DTetherControllerTest.cpp59 return lhs.ifIndex == rhs.ifIndex && lhs.rxBytes == rhs.rxBytes && lhs.txBytes == rhs.txBytes && in operator ==()
90 stats.ifIndex, stats.rxBytes, stats.rxPackets, stats.txBytes, in toString()
DClatdController.h60 unsigned ifIndex; member
DTrafficController.h111 netdutils::Status addUidInterfaceRules(const int ifIndex, const std::vector<int32_t>& uids)
DNetdNativeService.cpp460 result.ifIndex = UNUSED_IFINDEX; in toTetherStatsParcel()
1279 result.ifIndex = stats.ifIndex; in toTetherStatsParcel()
1300 binder::Status NetdNativeService::tetherOffloadSetInterfaceQuota(int ifIndex, int64_t quotaBytes) { in tetherOffloadSetInterfaceQuota() argument
1302 int res = gCtls->tetherCtrl.setTetherOffloadInterfaceQuota(ifIndex, quotaBytes); in tetherOffloadSetInterfaceQuota()
1307 int ifIndex, android::net::TetherStatsParcel* tetherStats) { in tetherOffloadGetAndClearStats() argument
1309 const auto& stats = gCtls->tetherCtrl.getAndClearTetherOffloadStats(ifIndex); in tetherOffloadGetAndClearStats()
DNetdNativeService.h143 binder::Status tetherOffloadSetInterfaceQuota(int ifIndex, int64_t quotaBytes) override;
145 int ifIndex, android::net::TetherStatsParcel* tetherStats) override;
DTrafficController.cpp987 uint32_t ifIndex = key.ifaceIndex; in dump() local
988 auto ifname = mIfaceIndexNameMap.readValue(ifIndex); in dump()
992 dw.println("%u %s 0x%x %u %u %" PRIu64 " %" PRIu64 " %" PRIu64 " %" PRIu64, ifIndex, in dump()
/system/netd/server/binder/android/net/
DTetherStatsParcel.aidl54 int ifIndex = 0;
DINetd.aidl1293 void tetherOffloadSetInterfaceQuota(int ifIndex, long quotaBytes); in tetherOffloadSetInterfaceQuota() argument
1311 TetherStatsParcel tetherOffloadGetAndClearStats(int ifIndex); in tetherOffloadGetAndClearStats() argument
/system/netd/server/aidl_api/netd_aidl_interface/4/android/net/
DTetherStatsParcel.aidl26 int ifIndex = 0;
DINetd.aidl123 void tetherOffloadSetInterfaceQuota(int ifIndex, long quotaBytes); in tetherOffloadSetInterfaceQuota() argument
124 android.net.TetherStatsParcel tetherOffloadGetAndClearStats(int ifIndex); in tetherOffloadGetAndClearStats() argument
/system/netd/server/aidl_api/netd_aidl_interface/current/android/net/
DTetherStatsParcel.aidl26 int ifIndex = 0;
DINetd.aidl123 void tetherOffloadSetInterfaceQuota(int ifIndex, long quotaBytes); in tetherOffloadSetInterfaceQuota() argument
124 android.net.TetherStatsParcel tetherOffloadGetAndClearStats(int ifIndex); in tetherOffloadGetAndClearStats() argument
/system/netd/tests/
Dbinder_test.cpp3746 EXPECT_EQ(sTun.ifindex(), tetherStats.ifIndex); in TEST_F()