/system/netd/server/ |
D | OffloadUtils.h | 72 int doTcQdiscClsact(int ifIndex, uint16_t nlMsgType, uint16_t nlMsgFlags); 74 inline int tcQdiscAddDevClsact(int ifIndex) { in tcQdiscAddDevClsact() argument 75 return doTcQdiscClsact(ifIndex, RTM_NEWQDISC, NLM_F_EXCL | NLM_F_CREATE); in tcQdiscAddDevClsact() 78 inline int tcQdiscReplaceDevClsact(int ifIndex) { in tcQdiscReplaceDevClsact() argument 79 return doTcQdiscClsact(ifIndex, RTM_NEWQDISC, NLM_F_CREATE | NLM_F_REPLACE); in tcQdiscReplaceDevClsact() 82 inline int tcQdiscDelDevClsact(int ifIndex) { in tcQdiscDelDevClsact() argument 83 return doTcQdiscClsact(ifIndex, RTM_DELQDISC, 0); in tcQdiscDelDevClsact() 88 int tcFilterAddDevBpf(int ifIndex, bool ingress, uint16_t proto, int bpfFd, bool ethernet); 91 inline int tcFilterAddDevIngressClatIpv6(int ifIndex, int bpfFd, bool ethernet) { in tcFilterAddDevIngressClatIpv6() argument 92 return tcFilterAddDevBpf(ifIndex, INGRESS, 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 | OffloadUtils.cpp | 163 int doTcQdiscClsact(int ifIndex, uint16_t nlMsgType, uint16_t nlMsgFlags) { in doTcQdiscClsact() argument 188 .tcm_ifindex = ifIndex, in doTcQdiscClsact() 212 int tcFilterAddDevBpf(int ifIndex, bool ingress, uint16_t proto, int bpfFd, bool ethernet) { in tcFilterAddDevBpf() argument 301 .tcm_ifindex = ifIndex, in tcFilterAddDevBpf() 362 int tcFilterDelDev(int ifIndex, bool ingress, uint16_t proto) { in tcFilterDelDev() argument 376 .tcm_ifindex = ifIndex, in tcFilterDelDev()
|
D | ClatdController.cpp | 203 ALOGE("isEthernet(%s[%d]) failure: %s", tracker.iface, tracker.ifIndex, in maybeStartBpf() 228 .oif = tracker.ifIndex, in maybeStartBpf() 241 .iif = tracker.ifIndex, in maybeStartBpf() 298 rv = tcFilterAddDevIngressClatIpv6(tracker.ifIndex, rxProgFd, isEthernet.value()); in maybeStartBpf() 300 ALOGE("tcFilterAddDevIngressClatIpv6(%d[%s], %d) failure: %s", tracker.ifIndex, in maybeStartBpf() 335 int rv = tcFilterDelDevIngressClatIpv6(tracker.ifIndex); in maybeStopBpf() 337 ALOGE("tcFilterDelDevIngressClatIpv6(%d[%s]) failure: %s", tracker.ifIndex, tracker.iface, in maybeStopBpf() 359 .iif = tracker.ifIndex, in maybeStopBpf() 386 ifIndex = if_nametoindex(iface); in init() 648 dw.println("%u[%s] %s/96 %s -> %s %u[%s] [%s]", tracker.ifIndex, tracker.iface, in dumpTrackers()
|
D | NetworkController.cpp | 156 if (int ifIndex = if_nametoindex(iface.c_str())) { local 158 tcQdiscDelDevClsact(ifIndex); 541 int ifIndex = RouteController::getIfIndex(interface); in addInterfaceToNetwork() local 542 if (ifIndex) { in addInterfaceToNetwork() 543 mIfindexToLastNetId[ifIndex] = netId; in addInterfaceToNetwork() 654 void NetworkController::addInterfaceAddress(unsigned ifIndex, const char* address) { in addInterfaceAddress() argument 656 if (ifIndex == 0) { in addInterfaceAddress() 660 mAddressToIfindices[address].insert(ifIndex); in addInterfaceAddress()
|
D | NetworkController.h | 140 void addInterfaceAddress(unsigned ifIndex, const char* address); 143 bool removeInterfaceAddress(unsigned ifIndex, const char* address);
|
D | ClatdController.h | 60 unsigned ifIndex; member
|
D | TrafficController.h | 105 netdutils::Status addUidInterfaceRules(const int ifIndex, const std::vector<int32_t>& uids)
|
D | NetdNativeService.h | 148 binder::Status tetherOffloadSetInterfaceQuota(int ifIndex, int64_t quotaBytes) override; 150 int ifIndex, android::net::TetherStatsParcel* tetherStats) override;
|
D | TrafficController.cpp | 915 uint32_t ifIndex = key.ifaceIndex; in dump() local 916 auto ifname = mIfaceIndexNameMap.readValue(ifIndex); in dump() 920 dw.println("%u %s 0x%x %u %u %" PRIu64 " %" PRIu64 " %" PRIu64 " %" PRIu64, ifIndex, in dump()
|
D | NetdNativeService.cpp | 498 result.ifIndex = UNUSED_IFINDEX; in toTetherStatsParcel()
|
/system/netd/server/aidl_api/netd_aidl_interface/6/android/net/ |
D | TetherStatsParcel.aidl | 42 int ifIndex = 0;
|
D | INetd.aidl | 145 void tetherOffloadSetInterfaceQuota(int ifIndex, long quotaBytes); in tetherOffloadSetInterfaceQuota() argument 146 android.net.TetherStatsParcel tetherOffloadGetAndClearStats(int ifIndex); in tetherOffloadGetAndClearStats() argument
|
/system/netd/server/aidl_api/netd_aidl_interface/5/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/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 | 42 int ifIndex = 0;
|
D | INetd.aidl | 145 void tetherOffloadSetInterfaceQuota(int ifIndex, long quotaBytes); in tetherOffloadSetInterfaceQuota() argument 146 android.net.TetherStatsParcel tetherOffloadGetAndClearStats(int ifIndex); in tetherOffloadGetAndClearStats() argument
|
/system/netd/server/binder/android/net/ |
D | TetherStatsParcel.aidl | 54 int ifIndex = 0;
|
D | INetd.aidl | 1325 void tetherOffloadSetInterfaceQuota(int ifIndex, long quotaBytes); in tetherOffloadSetInterfaceQuota() argument 1343 TetherStatsParcel tetherOffloadGetAndClearStats(int ifIndex); in tetherOffloadGetAndClearStats() argument
|
/system/netd/server/aidl_api/netd_aidl_interface/7/android/net/ |
D | TetherStatsParcel.aidl | 42 int ifIndex = 0;
|
D | INetd.aidl | 145 void tetherOffloadSetInterfaceQuota(int ifIndex, long quotaBytes); in tetherOffloadSetInterfaceQuota() argument 146 android.net.TetherStatsParcel tetherOffloadGetAndClearStats(int ifIndex); in tetherOffloadGetAndClearStats() argument
|
/system/netd/tests/ |
D | binder_test.cpp | 3815 EXPECT_EQ(sTun.ifindex(), tetherStats.ifIndex); in TEST_F()
|