Home
last modified time | relevance | path

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

/system/netd/server/
DClatUtils.h35 int tcQdiscAddDevClsact(int fd, int ifIndex);
36 int tcQdiscReplaceDevClsact(int fd, int ifIndex);
37 int tcQdiscDelDevClsact(int fd, int ifIndex);
39 int tcFilterAddDevBpf(int fd, int ifIndex, int bpfFd, bool ethernet);
DClatUtils.cpp147 int doTcQdiscClsact(int fd, int ifIndex, __u16 nlMsgType, __u16 nlMsgFlags) { in doTcQdiscClsact() argument
173 .tcm_ifindex = ifIndex, in doTcQdiscClsact()
197 int tcQdiscAddDevClsact(int fd, int ifIndex) { in tcQdiscAddDevClsact() argument
198 return doTcQdiscClsact(fd, ifIndex, RTM_NEWQDISC, NLM_F_EXCL | NLM_F_CREATE); in tcQdiscAddDevClsact()
201 int tcQdiscReplaceDevClsact(int fd, int ifIndex) { in tcQdiscReplaceDevClsact() argument
202 return doTcQdiscClsact(fd, ifIndex, RTM_NEWQDISC, NLM_F_CREATE | NLM_F_REPLACE); in tcQdiscReplaceDevClsact()
205 int tcQdiscDelDevClsact(int fd, int ifIndex) { in tcQdiscDelDevClsact() argument
206 return doTcQdiscClsact(fd, ifIndex, RTM_DELQDISC, 0); in tcQdiscDelDevClsact()
210 int tcFilterAddDevBpf(int fd, int ifIndex, int bpfFd, bool ethernet) { in tcFilterAddDevBpf() argument
286 .tcm_ifindex = ifIndex, in tcFilterAddDevBpf()
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()
DClatdController.cpp240 ALOGE("hardwareAddressType(%s[%d]) failure: %s", tracker.iface, tracker.ifIndex, in maybeStartBpf()
256 tracker.ifIndex, rv); in maybeStartBpf()
268 .iif = tracker.ifIndex, in maybeStartBpf()
287 rv = tcQdiscAddDevClsact(mNetlinkFd, tracker.ifIndex); in maybeStartBpf()
289 ALOGE("tcQdiscAddDevClsact(%d[%s]) failure: %s", tracker.ifIndex, tracker.iface, in maybeStartBpf()
296 rv = tcFilterAddDevBpf(mNetlinkFd, tracker.ifIndex, progFd, isEthernet); in maybeStartBpf()
299 ALOGI("tcFilterAddDevBpf(%d[%s], %d): %s", tracker.ifIndex, tracker.iface, isEthernet, in maybeStartBpf()
302 ALOGE("tcFilterAddDevBpf(%d[%s], %d) failure: %s", tracker.ifIndex, tracker.iface, in maybeStartBpf()
305 rv = tcQdiscDelDevClsact(mNetlinkFd, tracker.ifIndex); in maybeStartBpf()
307 ALOGE("tcQdiscDelDevClsact(%d[%s]) failure: %s", tracker.ifIndex, tracker.iface, in maybeStartBpf()
[all …]
DNetworkController.h136 void addInterfaceAddress(unsigned ifIndex, const char* address);
139 bool removeInterfaceAddress(unsigned ifIndex, const char* address);
DNetworkController.cpp500 int ifIndex = RouteController::getIfIndex(interface); in addInterfaceToNetwork() local
501 if (ifIndex) { in addInterfaceToNetwork()
502 mIfindexToLastNetId[ifIndex] = netId; in addInterfaceToNetwork()
605 void NetworkController::addInterfaceAddress(unsigned ifIndex, const char* address) { in addInterfaceAddress() argument
607 if (ifIndex == 0) { in addInterfaceAddress()
611 mAddressToIfindices[address].insert(ifIndex); in addInterfaceAddress()
DClatdController.h60 unsigned ifIndex; member
DTrafficController.h115 netdutils::Status addUidInterfaceRules(const int ifIndex, const std::vector<int32_t>& uids)
DTrafficController.cpp1019 uint32_t ifIndex = key.ifaceIndex; in dump() local
1020 auto ifname = mIfaceIndexNameMap.readValue(ifIndex); in dump()
1024 dw.println("%u %s 0x%x %u %u %" PRIu64 " %" PRIu64 " %" PRIu64 " %" PRIu64, ifIndex, in dump()