/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 | 235 void NetlinkHandler::notifyInterfaceAdded(const std::string& ifName) { in notifyInterfaceAdded() argument 236 LOG_EVENT_FUNC(BINDER_RETRY, onInterfaceAdded, ifName); in notifyInterfaceAdded() 239 void NetlinkHandler::notifyInterfaceRemoved(const std::string& ifName) { in notifyInterfaceRemoved() argument 240 LOG_EVENT_FUNC(BINDER_RETRY, onInterfaceRemoved, ifName); in notifyInterfaceRemoved() 243 void NetlinkHandler::notifyInterfaceChanged(const std::string& ifName, bool up) { in notifyInterfaceChanged() argument 244 LOG_EVENT_FUNC(BINDER_RETRY, onInterfaceChanged, ifName, up); in notifyInterfaceChanged() 247 void NetlinkHandler::notifyInterfaceLinkChanged(const std::string& ifName, bool up) { in notifyInterfaceLinkChanged() argument 248 LOG_EVENT_FUNC(BINDER_RETRY, onInterfaceLinkStateChanged, ifName, up); in notifyInterfaceLinkChanged() 252 const std::string& ifName) { in notifyQuotaLimitReached() argument 253 LOG_EVENT_FUNC(BINDER_RETRY, onQuotaLimitReached, labelName, ifName); in notifyQuotaLimitReached() [all …]
|
D | NetdNativeService.h | 44 binder::Status firewallSetInterfaceRule(const std::string& ifName, 49 binder::Status firewallAddUidInterfaceRules(const std::string& ifName, 55 binder::Status bandwidthSetInterfaceQuota(const std::string& ifName, int64_t bytes) override; 56 binder::Status bandwidthRemoveInterfaceQuota(const std::string& ifName) override; 57 binder::Status bandwidthSetInterfaceAlert(const std::string& ifName, int64_t bytes) override; 58 binder::Status bandwidthRemoveInterfaceAlert(const std::string& ifName) override; 79 binder::Status networkAddRoute(int32_t netId, const std::string& ifName, 82 binder::Status networkRemoveRoute(int32_t netId, const std::string& ifName, 85 binder::Status networkAddLegacyRoute(int32_t netId, const std::string& ifName, 88 binder::Status networkRemoveLegacyRoute(int32_t netId, const std::string& ifName, [all …]
|
D | NetdNativeService.cpp | 266 binder::Status NetdNativeService::bandwidthSetInterfaceQuota(const std::string& ifName, in bandwidthSetInterfaceQuota() argument 269 int res = gCtls->bandwidthCtrl.setInterfaceQuota(ifName, bytes); in bandwidthSetInterfaceQuota() 273 binder::Status NetdNativeService::bandwidthRemoveInterfaceQuota(const std::string& ifName) { in bandwidthRemoveInterfaceQuota() argument 275 int res = gCtls->bandwidthCtrl.removeInterfaceQuota(ifName); in bandwidthRemoveInterfaceQuota() 279 binder::Status NetdNativeService::bandwidthSetInterfaceAlert(const std::string& ifName, in bandwidthSetInterfaceAlert() argument 282 int res = gCtls->bandwidthCtrl.setInterfaceAlert(ifName, bytes); in bandwidthSetInterfaceAlert() 286 binder::Status NetdNativeService::bandwidthRemoveInterfaceAlert(const std::string& ifName) { in bandwidthRemoveInterfaceAlert() argument 288 int res = gCtls->bandwidthCtrl.removeInterfaceAlert(ifName); in bandwidthRemoveInterfaceAlert() 481 binder::Status NetdNativeService::interfaceAddAddress(const std::string &ifName, in interfaceAddAddress() argument 485 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 | 485 strlcpy(ifr.ifr_name, cfg.ifName.c_str(), IFNAMSIZ); in setCfg() 509 ifc_add_address(cfg.ifName.c_str(), cfg.ipv4Addr.c_str(), cfg.prefixLength)); in setCfg() 514 StatusOr<InterfaceConfigurationParcel> InterfaceController::getCfg(const std::string& ifName) { in getCfg() argument 525 strlcpy(ifr.ifr_name, ifName.c_str(), IFNAMSIZ); in getCfg() 545 ALOGW("Failed to retrieve HW addr for %s (%s)", ifName.c_str(), strerror(errno)); in getCfg() 548 cfgResult.ifName = ifName; in getCfg() 565 int InterfaceController::clearAddrs(const std::string& ifName) { in clearAddrs() argument 566 return ifc_clear_addresses(ifName.c_str()); in clearAddrs()
|
D | XfrmController.cpp | 1389 char ifName[IFNAMSIZ]; // Already aligned in ipSecAddXfrmInterface() member 1451 strlcpy(xfrmIntfCreateReq.ifName, deviceName.c_str(), IFNAMSIZ); in ipSecAddXfrmInterface()
|
D | NdcDispatcher.cpp | 227 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 | binder_test.cpp | 1681 std::string ipRouteString(const std::string& ifName, const std::string& dst, in ipRouteString() argument 1689 return dstString + " dev " + ifName; in ipRouteString() 1692 void expectNetworkRouteExists(const char* ipVersion, const std::string& ifName, in expectNetworkRouteExists() argument 1695 EXPECT_TRUE(ipRouteExists(ipVersion, table, ipRouteString(ifName, dst, nextHop))); in expectNetworkRouteExists() 1698 void expectNetworkRouteDoesNotExist(const char* ipVersion, const std::string& ifName, in expectNetworkRouteDoesNotExist() argument 1701 EXPECT_FALSE(ipRouteExists(ipVersion, table, ipRouteString(ifName, dst, nextHop))); in expectNetworkRouteDoesNotExist() 1714 void expectNetworkDefaultIpRuleExists(const char* ifName) { in expectNetworkDefaultIpRuleExists() argument 1716 StringPrintf("22000:\tfrom all fwmark 0x0/0xffff iif lo lookup %s", ifName); in expectNetworkDefaultIpRuleExists() 1731 void expectNetworkPermissionIpRuleExists(const char* ifName, int permission) { in expectNetworkPermissionIpRuleExists() argument 1736 "13000:\tfrom all fwmark 0x1ffdd/0x1ffff iif lo lookup %s", ifName); in expectNetworkPermissionIpRuleExists() [all …]
|
D | tun_interface.h | 32 int init(const std::string& ifName = "");
|
D | tun_interface.cpp | 51 int TunInterface::init(const std::string& ifName) { in init() argument 77 mIfName = ifName; in init()
|
/system/netd/server/binder/android/net/ |
D | INetdUnsolicitedEventListener.aidl | 51 void onQuotaLimitReached(@utf8InCpp String alertName, @utf8InCpp String ifName); in onQuotaLimitReached() argument 63 @utf8InCpp String ifName, long lifetimeS, in @utf8InCpp String[] servers); in onInterfaceDnsServerInfo() 75 @utf8InCpp String ifName, in onInterfaceAddressUpdated() argument 89 @utf8InCpp String ifName, in onInterfaceAddressRemoved() argument 98 void onInterfaceAdded(@utf8InCpp String ifName); in onInterfaceAdded() argument 105 void onInterfaceRemoved(@utf8InCpp String ifName); in onInterfaceRemoved() argument 113 void onInterfaceChanged(@utf8InCpp String ifName, boolean up); in onInterfaceChanged() argument 121 void onInterfaceLinkStateChanged(@utf8InCpp String ifName, boolean up); in onInterfaceLinkStateChanged() argument 135 @utf8InCpp String ifName); in onRouteChanged() argument
|
D | INetd.aidl | 208 void interfaceAddAddress(in @utf8InCpp String ifName, in @utf8InCpp String addrString, in interfaceAddAddress() argument 210 void interfaceDelAddress(in @utf8InCpp String ifName, in @utf8InCpp String addrString, in interfaceDelAddress() argument 475 …void wakeupAddInterface(in @utf8InCpp String ifName, in @utf8InCpp String prefix, int mark, int ma… in wakeupAddInterface() argument 483 …void wakeupDelInterface(in @utf8InCpp String ifName, in @utf8InCpp String prefix, int mark, int ma… in wakeupDelInterface() argument 496 void setIPv6AddrGenMode(in @utf8InCpp String ifName, int mode); in setIPv6AddrGenMode() argument 508 in @utf8InCpp String ifName, in idletimerAddInterface() 522 in @utf8InCpp String ifName, in idletimerRemoveInterface() 549 @utf8InCpp String clatdStart(in @utf8InCpp String ifName, in @utf8InCpp String nat64Prefix); in clatdStart() argument 558 void clatdStop(in @utf8InCpp String ifName); in clatdStop() argument 623 void bandwidthSetInterfaceQuota(in @utf8InCpp String ifName, long bytes); in bandwidthSetInterfaceQuota() argument [all …]
|
D | InterfaceConfigurationParcel.aidl | 25 @utf8InCpp String ifName;
|
/system/netd/server/aidl/netd/1/android/net/ |
D | INetdUnsolicitedEventListener.aidl | 4 oneway void onQuotaLimitReached(@utf8InCpp String alertName, @utf8InCpp String ifName); in onQuotaLimitReached() argument 5 …oneway void onInterfaceDnsServerInfo(@utf8InCpp String ifName, long lifetimeS, in @utf8InCpp Strin… in onInterfaceDnsServerInfo() argument 6 …oneway void onInterfaceAddressUpdated(@utf8InCpp String addr, @utf8InCpp String ifName, int flags,… in onInterfaceAddressUpdated() argument 7 …oneway void onInterfaceAddressRemoved(@utf8InCpp String addr, @utf8InCpp String ifName, int flags,… in onInterfaceAddressRemoved() argument 8 oneway void onInterfaceAdded(@utf8InCpp String ifName); in onInterfaceAdded() argument 9 oneway void onInterfaceRemoved(@utf8InCpp String ifName); in onInterfaceRemoved() argument 10 oneway void onInterfaceChanged(@utf8InCpp String ifName, boolean up); in onInterfaceChanged() argument 11 oneway void onInterfaceLinkStateChanged(@utf8InCpp String ifName, boolean up); in onInterfaceLinkStateChanged() argument 12 …ged(boolean updated, @utf8InCpp String route, @utf8InCpp String gateway, @utf8InCpp String ifName); in onRouteChanged() argument
|
D | INetd.aidl | 17 …void interfaceAddAddress(in @utf8InCpp String ifName, in @utf8InCpp String addrString, int prefixL… in interfaceAddAddress() argument 18 …void interfaceDelAddress(in @utf8InCpp String ifName, in @utf8InCpp String addrString, int prefixL… in interfaceDelAddress() argument 33 …void wakeupAddInterface(in @utf8InCpp String ifName, in @utf8InCpp String prefix, int mark, int ma… in wakeupAddInterface() argument 34 …void wakeupDelInterface(in @utf8InCpp String ifName, in @utf8InCpp String prefix, int mark, int ma… in wakeupDelInterface() argument 35 void setIPv6AddrGenMode(in @utf8InCpp String ifName, int mode); in setIPv6AddrGenMode() argument 36 …void idletimerAddInterface(in @utf8InCpp String ifName, int timeout, in @utf8InCpp String classLab… in idletimerAddInterface() argument 37 …void idletimerRemoveInterface(in @utf8InCpp String ifName, int timeout, in @utf8InCpp String class… in idletimerRemoveInterface() argument 39 @utf8InCpp String clatdStart(in @utf8InCpp String ifName, in @utf8InCpp String nat64Prefix); in clatdStart() argument 40 void clatdStop(in @utf8InCpp String ifName); in clatdStop() argument 47 void bandwidthSetInterfaceQuota(in @utf8InCpp String ifName, long bytes); in bandwidthSetInterfaceQuota() argument [all …]
|
D | InterfaceConfigurationParcel.aidl | 3 @utf8InCpp String ifName;
|
/system/netd/server/aidl/netd/2/android/net/ |
D | INetdUnsolicitedEventListener.aidl | 21 oneway void onQuotaLimitReached(@utf8InCpp String alertName, @utf8InCpp String ifName); in onQuotaLimitReached() argument 22 …oneway void onInterfaceDnsServerInfo(@utf8InCpp String ifName, long lifetimeS, in @utf8InCpp Strin… in onInterfaceDnsServerInfo() argument 23 …oneway void onInterfaceAddressUpdated(@utf8InCpp String addr, @utf8InCpp String ifName, int flags,… in onInterfaceAddressUpdated() argument 24 …oneway void onInterfaceAddressRemoved(@utf8InCpp String addr, @utf8InCpp String ifName, int flags,… in onInterfaceAddressRemoved() argument 25 oneway void onInterfaceAdded(@utf8InCpp String ifName); in onInterfaceAdded() argument 26 oneway void onInterfaceRemoved(@utf8InCpp String ifName); in onInterfaceRemoved() argument 27 oneway void onInterfaceChanged(@utf8InCpp String ifName, boolean up); in onInterfaceChanged() argument 28 oneway void onInterfaceLinkStateChanged(@utf8InCpp String ifName, boolean up); in onInterfaceLinkStateChanged() argument 29 …ged(boolean updated, @utf8InCpp String route, @utf8InCpp String gateway, @utf8InCpp String ifName); in onRouteChanged() argument
|
D | INetd.aidl | 34 …void interfaceAddAddress(in @utf8InCpp String ifName, in @utf8InCpp String addrString, int prefixL… in interfaceAddAddress() argument 35 …void interfaceDelAddress(in @utf8InCpp String ifName, in @utf8InCpp String addrString, int prefixL… in interfaceDelAddress() argument 50 …void wakeupAddInterface(in @utf8InCpp String ifName, in @utf8InCpp String prefix, int mark, int ma… in wakeupAddInterface() argument 51 …void wakeupDelInterface(in @utf8InCpp String ifName, in @utf8InCpp String prefix, int mark, int ma… in wakeupDelInterface() argument 52 void setIPv6AddrGenMode(in @utf8InCpp String ifName, int mode); in setIPv6AddrGenMode() argument 53 …void idletimerAddInterface(in @utf8InCpp String ifName, int timeout, in @utf8InCpp String classLab… in idletimerAddInterface() argument 54 …void idletimerRemoveInterface(in @utf8InCpp String ifName, int timeout, in @utf8InCpp String class… in idletimerRemoveInterface() argument 56 @utf8InCpp String clatdStart(in @utf8InCpp String ifName, in @utf8InCpp String nat64Prefix); in clatdStart() argument 57 void clatdStop(in @utf8InCpp String ifName); in clatdStop() argument 64 void bandwidthSetInterfaceQuota(in @utf8InCpp String ifName, long bytes); in bandwidthSetInterfaceQuota() argument [all …]
|
D | InterfaceConfigurationParcel.aidl | 20 @utf8InCpp String ifName;
|