/system/netd/server/ |
D | OffloadUtils.h | 93 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 …]
|
D | NetlinkHandler.cpp | 88 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()
|
D | TetherController.cpp | 1036 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 …]
|
D | OffloadUtils.cpp | 153 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()
|
D | TetherController.h | 111 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);
|
D | ClatdController.cpp | 233 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 …]
|
D | NetworkController.cpp | 154 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()
|
D | NetworkController.h | 135 void addInterfaceAddress(unsigned ifIndex, const char* address); 138 bool removeInterfaceAddress(unsigned ifIndex, const char* address);
|
D | TetherControllerTest.cpp | 59 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()
|
D | ClatdController.h | 60 unsigned ifIndex; member
|
D | TrafficController.h | 111 netdutils::Status addUidInterfaceRules(const int ifIndex, const std::vector<int32_t>& uids)
|
D | NetdNativeService.cpp | 458 result.ifIndex = UNUSED_IFINDEX; in toTetherStatsParcel() 1277 result.ifIndex = stats.ifIndex; in toTetherStatsParcel() 1298 binder::Status NetdNativeService::tetherOffloadSetInterfaceQuota(int ifIndex, int64_t quotaBytes) { in tetherOffloadSetInterfaceQuota() argument 1300 int res = gCtls->tetherCtrl.setTetherOffloadInterfaceQuota(ifIndex, quotaBytes); in tetherOffloadSetInterfaceQuota() 1305 int ifIndex, android::net::TetherStatsParcel* tetherStats) { in tetherOffloadGetAndClearStats() argument 1307 const auto& stats = gCtls->tetherCtrl.getAndClearTetherOffloadStats(ifIndex); in tetherOffloadGetAndClearStats()
|
D | NetdNativeService.h | 144 binder::Status tetherOffloadSetInterfaceQuota(int ifIndex, int64_t quotaBytes) override; 146 int ifIndex, android::net::TetherStatsParcel* tetherStats) override;
|
D | TrafficController.cpp | 989 uint32_t ifIndex = key.ifaceIndex; in dump() local 990 auto ifname = mIfaceIndexNameMap.readValue(ifIndex); in dump() 994 dw.println("%u %s 0x%x %u %u %" PRIu64 " %" PRIu64 " %" PRIu64 " %" PRIu64, ifIndex, in dump()
|
/system/netd/server/binder/android/net/ |
D | TetherStatsParcel.aidl | 54 int ifIndex = 0;
|
D | INetd.aidl | 1293 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/ |
D | TetherStatsParcel.aidl | 26 int ifIndex = 0;
|
D | INetd.aidl | 123 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/ |
D | TetherStatsParcel.aidl | 26 int ifIndex = 0;
|
D | INetd.aidl | 123 void tetherOffloadSetInterfaceQuota(int ifIndex, long quotaBytes); in tetherOffloadSetInterfaceQuota() argument 124 android.net.TetherStatsParcel tetherOffloadGetAndClearStats(int ifIndex); in tetherOffloadGetAndClearStats() argument
|
/system/netd/tests/ |
D | binder_test.cpp | 3746 EXPECT_EQ(sTun.ifindex(), tetherStats.ifIndex); in TEST_F()
|