Searched refs:gCtls (Results 1 – 14 of 14) sorted by relevance
/system/netd/server/ |
D | NetdNativeService.cpp | 159 gCtls->tcpSocketMonitor.dump(dw); in dump() 166 gCtls->netCtrl.dump(dw); in dump() 169 gCtls->xfrmCtrl.dump(dw); in dump() 172 gCtls->tetherCtrl.dump(dw); in dump() 217 NETD_LOCKING_RPC(gCtls->bandwidthCtrl.lock, PERM_NETWORK_STACK, PERM_MAINLINE_NETWORK_STACK); in bandwidthEnableDataSaver() 218 int err = gCtls->bandwidthCtrl.enableDataSaver(enable); in bandwidthEnableDataSaver() 225 NETD_LOCKING_RPC(gCtls->bandwidthCtrl.lock, PERM_NETWORK_STACK, PERM_MAINLINE_NETWORK_STACK); in bandwidthSetInterfaceQuota() 226 int res = gCtls->bandwidthCtrl.setInterfaceQuota(ifName, bytes); in bandwidthSetInterfaceQuota() 231 NETD_LOCKING_RPC(gCtls->bandwidthCtrl.lock, PERM_NETWORK_STACK, PERM_MAINLINE_NETWORK_STACK); in bandwidthRemoveInterfaceQuota() 232 int res = gCtls->bandwidthCtrl.removeInterfaceQuota(ifName); in bandwidthRemoveInterfaceQuota() [all …]
|
D | NetdHwService.cpp | 64 int ret = gCtls->netCtrl.createPhysicalOemNetwork(permission, &netId); in createOemNetwork() 87 return toHalStatus(gCtls->netCtrl.destroyNetwork(netId)); in destroyOemNetwork() 105 return toHalStatus(gCtls->netCtrl.addRoute(netId, ifname.c_str(), destination.c_str(), in addRouteToOemNetwork() 116 return toHalStatus(gCtls->netCtrl.removeRoute(netId, ifname.c_str(), destination.c_str(), in removeRouteFromOemNetwork() 125 return toHalStatus(gCtls->netCtrl.addInterfaceToNetwork(netId, ifname.c_str())); in addInterfaceToOemNetwork() 133 return toHalStatus(gCtls->netCtrl.removeInterfaceFromNetwork(netId, ifname.c_str())); in removeInterfaceFromOemNetwork() 137 std::lock_guard _lock(gCtls->tetherCtrl.lock); in setIpForwardEnable() 139 bool success = enable ? gCtls->tetherCtrl.enableForwarding(FORWARDING_REQUESTER) : in setIpForwardEnable() 140 gCtls->tetherCtrl.disableForwarding(FORWARDING_REQUESTER); in setIpForwardEnable() 147 std::lock_guard _lock(gCtls->tetherCtrl.lock); in setForwardingBetweenInterfaces()
|
D | NetdHwAidlService.cpp | 72 int ret = gCtls->netCtrl.createPhysicalOemNetwork(permission, &netId); in createOemNetwork() 98 auto ret = toHalStatus(gCtls->netCtrl.destroyNetwork(netId)); in destroyOemNetwork() 122 auto ret = gCtls->netCtrl.addRoute(netId, ifname.c_str(), destination.c_str(), in addRouteToOemNetwork() 138 auto ret = gCtls->netCtrl.removeRoute(netId, ifname.c_str(), destination.c_str(), in removeRouteFromOemNetwork() 152 auto ret = gCtls->netCtrl.addInterfaceToNetwork(netId, ifname.c_str()); in addInterfaceToOemNetwork() 165 auto ret = gCtls->netCtrl.removeInterfaceFromNetwork(netId, ifname.c_str()); in removeInterfaceFromOemNetwork() 174 std::lock_guard _lock(gCtls->tetherCtrl.lock); in setIpForwardEnable() 176 bool success = enable ? gCtls->tetherCtrl.enableForwarding(FORWARDING_REQUESTER) in setIpForwardEnable() 177 : gCtls->tetherCtrl.disableForwarding(FORWARDING_REQUESTER); in setIpForwardEnable() 189 std::lock_guard _lock(gCtls->tetherCtrl.lock); in setForwardingBetweenInterfaces()
|
D | main.cpp | 63 using android::net::gCtls; 82 gCtls->netCtrl.getNetworkContext(netId, uid, netcontext); in getNetworkContextCallback() 101 if (!gCtls->netCtrl.isUidAllowed(netcontext.app_netid, netcontext.uid)) { in evaluateDomainNameCallback() 161 gCtls = new android::net::Controllers(); in main() 162 gCtls->init(); in main() 177 auto status = gCtls->wakeupCtrl.init(logListener.get()); in main() 195 FwmarkServer fwmarkServer(&gCtls->netCtrl, &gCtls->eventReporter); in main()
|
D | Controllers.h | 72 extern Controllers* gCtls;
|
D | NetlinkHandler.cpp | 56 const auto listenerMap = gCtls->eventReporter.getNetdUnsolicitedEventListenerMap(); \ 140 gCtls->netCtrl.addInterfaceAddress(ifaceIndex, address); in onEvent() 142 bool shouldDestroy = gCtls->netCtrl.removeInterfaceAddress(ifaceIndex, address); in onEvent()
|
D | NetdConstants.cpp | 39 return android::net::gCtls->iptablesRestoreCtrl.execute(target, commands, output); in execIptablesRestoreWithOutput()
|
D | Controllers.cpp | 303 Controllers* gCtls = nullptr; variable
|
D | MDnsSdListener.cpp | 49 using android::net::gCtls; 70 } else if ((netId = gCtls->netCtrl.getNetworkForInterface(interfaceName)) == NETID_UNSET) { in ifaceIndexToNetId()
|
D | TcpSocketMonitor.cpp | 232 const auto listener = gCtls->eventReporter.getNetdEventListener(); in poll()
|
D | NetworkController.cpp | 1031 android::net::gCtls->tcpSocketMonitor.resumePolling(); in updateTcpSocketMonitorPolling() 1033 android::net::gCtls->tcpSocketMonitor.suspendPolling(); in updateTcpSocketMonitorPolling()
|
/system/netd/server/aidl-fuzzers/ |
D | MDnsServiceFuzzer.cpp | 24 using android::net::gCtls; 28 gCtls = new android::net::Controllers(); in LLVMFuzzerInitialize() 29 gCtls->init(); in LLVMFuzzerInitialize()
|
D | NetdNativeServiceFuzzer.cpp | 26 using android::net::gCtls; 32 gCtls = new android::net::Controllers(); in LLVMFuzzerInitialize() 33 gCtls->init(); in LLVMFuzzerInitialize()
|
D | NetdHwAidlServiceFuzzer.cpp | 26 using android::net::gCtls; 30 gCtls = new android::net::Controllers(); in LLVMFuzzerInitialize() 31 gCtls->init(); in LLVMFuzzerInitialize()
|