/system/netd/server/ |
D | InterfaceController.h | 37 static int setEnableIPv6(const char* ifName, const int on); 38 static android::netdutils::Status setIPv6AddrGenMode(const std::string& ifName, int mode); 39 static int setAcceptIPv6Ra(const char* ifName, const int on); 40 static int setAcceptIPv6Dad(const char* ifName, const int on); 41 static int setIPv6DadTransmits(const char* ifName, const char* value); 42 static int setIPv6PrivacyExtensions(const char* ifName, const int on); 43 static int setMtu(const char* ifName, const char* mtu); 44 static int addAddress(const char* ifName, const char* addrString, int prefixLength); 45 static int delAddress(const char* ifName, const char* addrString, int prefixLength); 49 const std::string& ifName); [all …]
|
D | NetlinkHandler.h | 44 void notifyInterfaceAdded(const std::string& ifName); 45 void notifyInterfaceRemoved(const std::string& ifName); 46 void notifyInterfaceChanged(const std::string& ifName, bool isUp); 47 void notifyInterfaceLinkChanged(const std::string& ifName, bool isUp); 48 void notifyQuotaLimitReached(const std::string& labelName, const std::string& ifName); 50 void notifyAddressUpdated(const std::string& addr, const std::string& ifName, int flags, 52 void notifyAddressRemoved(const std::string& addr, const std::string& ifName, int flags, 54 void notifyInterfaceDnsServers(const std::string& ifName, int64_t lifetime, 57 const std::string& ifName);
|
D | NetlinkHandler.cpp | 227 void NetlinkHandler::notifyInterfaceAdded(const std::string& ifName) { in notifyInterfaceAdded() argument 228 LOG_EVENT_FUNC(BINDER_RETRY, onInterfaceAdded, ifName); in notifyInterfaceAdded() 231 void NetlinkHandler::notifyInterfaceRemoved(const std::string& ifName) { in notifyInterfaceRemoved() argument 232 LOG_EVENT_FUNC(BINDER_RETRY, onInterfaceRemoved, ifName); in notifyInterfaceRemoved() 235 void NetlinkHandler::notifyInterfaceChanged(const std::string& ifName, bool up) { in notifyInterfaceChanged() argument 236 LOG_EVENT_FUNC(BINDER_RETRY, onInterfaceChanged, ifName, up); in notifyInterfaceChanged() 239 void NetlinkHandler::notifyInterfaceLinkChanged(const std::string& ifName, bool up) { in notifyInterfaceLinkChanged() argument 240 LOG_EVENT_FUNC(BINDER_RETRY, onInterfaceLinkStateChanged, ifName, up); in notifyInterfaceLinkChanged() 244 const std::string& ifName) { in notifyQuotaLimitReached() argument 245 LOG_EVENT_FUNC(BINDER_RETRY, onQuotaLimitReached, labelName, ifName); in notifyQuotaLimitReached() [all …]
|
D | NetdNativeService.h | 43 binder::Status firewallSetInterfaceRule(const std::string& ifName, 48 binder::Status firewallAddUidInterfaceRules(const std::string& ifName, 54 binder::Status bandwidthSetInterfaceQuota(const std::string& ifName, int64_t bytes) override; 55 binder::Status bandwidthRemoveInterfaceQuota(const std::string& ifName) override; 56 binder::Status bandwidthSetInterfaceAlert(const std::string& ifName, int64_t bytes) override; 57 binder::Status bandwidthRemoveInterfaceAlert(const std::string& ifName) override; 86 binder::Status networkAddRoute(int32_t netId, const std::string& ifName, 89 binder::Status networkRemoveRoute(int32_t netId, const std::string& ifName, 92 binder::Status networkAddLegacyRoute(int32_t netId, const std::string& ifName, 95 binder::Status networkRemoveLegacyRoute(int32_t netId, const std::string& ifName, [all …]
|
D | NetdNativeService.cpp | 223 binder::Status NetdNativeService::bandwidthSetInterfaceQuota(const std::string& ifName, in bandwidthSetInterfaceQuota() argument 226 int res = gCtls->bandwidthCtrl.setInterfaceQuota(ifName, bytes); in bandwidthSetInterfaceQuota() 230 binder::Status NetdNativeService::bandwidthRemoveInterfaceQuota(const std::string& ifName) { in bandwidthRemoveInterfaceQuota() argument 232 int res = gCtls->bandwidthCtrl.removeInterfaceQuota(ifName); in bandwidthRemoveInterfaceQuota() 236 binder::Status NetdNativeService::bandwidthSetInterfaceAlert(const std::string& ifName, in bandwidthSetInterfaceAlert() argument 239 int res = gCtls->bandwidthCtrl.setInterfaceAlert(ifName, bytes); in bandwidthSetInterfaceAlert() 243 binder::Status NetdNativeService::bandwidthRemoveInterfaceAlert(const std::string& ifName) { in bandwidthRemoveInterfaceAlert() argument 245 int res = gCtls->bandwidthCtrl.removeInterfaceAlert(ifName); in bandwidthRemoveInterfaceAlert() 466 binder::Status NetdNativeService::interfaceAddAddress(const std::string &ifName, in interfaceAddAddress() argument 470 ifName.c_str(), addrString.c_str(), prefixLength); in interfaceAddAddress() [all …]
|
D | WakeupController.h | 68 netdutils::Status addInterface(const std::string& ifName, const std::string& prefix, 73 netdutils::Status delInterface(const std::string& ifName, const std::string& prefix, 77 netdutils::Status execIptables(const std::string& action, const std::string& ifName,
|
D | WakeupController.cpp | 194 Status WakeupController::addInterface(const std::string& ifName, const std::string& prefix, in addInterface() argument 196 return execIptables("-A", ifName, prefix, mark, mask); in addInterface() 199 Status WakeupController::delInterface(const std::string& ifName, const std::string& prefix, in delInterface() argument 201 return execIptables("-D", ifName, prefix, mark, mask); in delInterface() 204 Status WakeupController::execIptables(const std::string& action, const std::string& ifName, in execIptables() argument 214 kFormat, action.c_str(), WakeupController::LOCAL_MANGLE_INPUT, ifName.c_str(), in execIptables()
|
D | InterfaceController.cpp | 446 strlcpy(ifr.ifr_name, cfg.ifName.c_str(), IFNAMSIZ); in setCfg() 469 if (int ret = ifc_add_address(cfg.ifName.c_str(), cfg.ipv4Addr.c_str(), cfg.prefixLength)) { in setCfg() 476 StatusOr<InterfaceConfigurationParcel> InterfaceController::getCfg(const std::string& ifName) { in getCfg() argument 487 strlcpy(ifr.ifr_name, ifName.c_str(), IFNAMSIZ); in getCfg() 507 ALOGW("Failed to retrieve HW addr for %s (%s)", ifName.c_str(), strerror(errno)); in getCfg() 510 cfgResult.ifName = ifName; in getCfg() 527 int InterfaceController::clearAddrs(const std::string& ifName) { in clearAddrs() argument 528 return ifc_clear_addresses(ifName.c_str()); in clearAddrs()
|
D | RouteController.cpp | 222 for (const auto& [ifName, ifIndex] : sInterfaceToTable) { in updateTableNamesFile() 223 addTableName(ifIndex, ifName, &contents); in updateTableNamesFile() 228 addTableName(offset + ifIndex, ifName + INTERFACE_LOCAL_SUFFIX, &contents); in updateTableNamesFile()
|
D | XfrmController.cpp | 1490 char ifName[IFNAMSIZ]; // Already aligned in ipSecAddXfrmInterface() member 1552 strlcpy(xfrmIntfCreateReq.ifName, deviceName.c_str(), IFNAMSIZ); in ipSecAddXfrmInterface()
|
D | NdcDispatcher.cpp | 226 interfaceCfg.ifName = argv[2]; in runCommand()
|
/system/netd/tests/ |
D | TestUnsolService.cpp | 66 void TestUnsolService::checkTarget(const std::string& ifName, uint32_t flag) { in checkTarget() argument 67 if (containsSubstring(tarVec, ifName)) { in checkTarget() 90 const std::string& ifName) { in onQuotaLimitReached() argument 91 events_.push_back(StringPrintf("onQuotaLimitReached %s %s", alertName.c_str(), ifName.c_str())); in onQuotaLimitReached() 95 binder::Status TestUnsolService::onInterfaceDnsServerInfo(const std::string& ifName, in onInterfaceDnsServerInfo() argument 98 events_.push_back(StringPrintf("onInterfaceDnsServerInfo %s %" PRId64 "%s", ifName.c_str(), in onInterfaceDnsServerInfo() 104 const std::string& ifName, int, int) { in onInterfaceAddressUpdated() argument 105 checkTarget(ifName, InterfaceAddressUpdated); in onInterfaceAddressUpdated() 110 const std::string& ifName, int flags, in onInterfaceAddressRemoved() argument 113 ifName.c_str(), flags, scope)); in onInterfaceAddressRemoved() [all …]
|
D | TestUnsolService.h | 59 const std::string& ifName) override; 60 binder::Status onInterfaceDnsServerInfo(const std::string& ifName, int64_t lifetime, 62 binder::Status onInterfaceAddressUpdated(const std::string& addr, const std::string& ifName, 64 binder::Status onInterfaceAddressRemoved(const std::string& addr, const std::string& ifName, 66 binder::Status onInterfaceAdded(const std::string& ifName) override; 67 binder::Status onInterfaceRemoved(const std::string& ifName) override; 68 binder::Status onInterfaceChanged(const std::string& ifName, bool status) override; 69 binder::Status onInterfaceLinkStateChanged(const std::string& ifName, bool status) override; 71 const std::string& gateway, const std::string& ifName) override; 78 void checkTarget(const std::string& ifName, uint32_t flag);
|
D | tun_interface.h | 32 int init(const std::string& ifName, bool isTap); 36 int init(const std::string& ifName) { return init(ifName, false); } in init() argument
|
D | binder_test.cpp | 1350 std::string ipRoutePrefix(const std::string& ifName, const std::string& dst, in ipRoutePrefix() argument 1375 prefixString += " dev " + ifName; in ipRoutePrefix() 1434 std::vector<std::string> ipRouteSubstrings(const std::string& ifName, const std::string& dst, in ipRouteSubstrings() argument 1438 routeSubstrings.push_back(ipRoutePrefix(ifName, dst, nextHop)); in ipRouteSubstrings() 1450 void expectNetworkRouteDoesNotExistWithMtu(const char* ipVersion, const std::string& ifName, in expectNetworkRouteDoesNotExistWithMtu() argument 1453 std::vector<std::string> routeSubstrings = ipRouteSubstrings(ifName, dst, nextHop, mtu); in expectNetworkRouteDoesNotExistWithMtu() 1458 void expectNetworkRouteExistsWithMtu(const char* ipVersion, const std::string& ifName, in expectNetworkRouteExistsWithMtu() argument 1461 std::vector<std::string> routeSubstrings = ipRouteSubstrings(ifName, dst, nextHop, mtu); in expectNetworkRouteExistsWithMtu() 1467 void expectVpnLocalExclusionRuleExists(const std::string& ifName, bool expectExists) { in expectVpnLocalExclusionRuleExists() argument 1468 std::string tableName = std::string(ifName + "_local"); in expectVpnLocalExclusionRuleExists() [all …]
|
D | tun_interface.cpp | 51 int TunInterface::init(const std::string& ifName, bool isTap) { in init() argument 77 mIfName = ifName; in init()
|