Home
last modified time | relevance | path

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

/system/netd/server/
DOffloadUtils.h72 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 …]
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()
DOffloadUtils.cpp163 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()
DClatdController.cpp203 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()
DNetworkController.cpp156 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()
DNetworkController.h140 void addInterfaceAddress(unsigned ifIndex, const char* address);
143 bool removeInterfaceAddress(unsigned ifIndex, const char* address);
DClatdController.h60 unsigned ifIndex; member
DTrafficController.h105 netdutils::Status addUidInterfaceRules(const int ifIndex, const std::vector<int32_t>& uids)
DNetdNativeService.h148 binder::Status tetherOffloadSetInterfaceQuota(int ifIndex, int64_t quotaBytes) override;
150 int ifIndex, android::net::TetherStatsParcel* tetherStats) override;
DTrafficController.cpp915 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()
DNetdNativeService.cpp498 result.ifIndex = UNUSED_IFINDEX; in toTetherStatsParcel()
/system/netd/server/aidl_api/netd_aidl_interface/6/android/net/
DTetherStatsParcel.aidl42 int ifIndex = 0;
DINetd.aidl145 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/
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/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.aidl42 int ifIndex = 0;
DINetd.aidl145 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/
DTetherStatsParcel.aidl54 int ifIndex = 0;
DINetd.aidl1325 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/
DTetherStatsParcel.aidl42 int ifIndex = 0;
DINetd.aidl145 void tetherOffloadSetInterfaceQuota(int ifIndex, long quotaBytes); in tetherOffloadSetInterfaceQuota() argument
146 android.net.TetherStatsParcel tetherOffloadGetAndClearStats(int ifIndex); in tetherOffloadGetAndClearStats() argument
/system/netd/tests/
Dbinder_test.cpp3815 EXPECT_EQ(sTun.ifindex(), tetherStats.ifIndex); in TEST_F()