Home
last modified time | relevance | path

Searched refs:gCtls (Results 1 – 14 of 14) sorted by relevance

/system/netd/server/
DNetdNativeService.cpp159 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 …]
DNetdHwService.cpp64 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()
DNetdHwAidlService.cpp72 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()
Dmain.cpp63 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()
DControllers.h72 extern Controllers* gCtls;
DNetlinkHandler.cpp56 const auto listenerMap = gCtls->eventReporter.getNetdUnsolicitedEventListenerMap(); \
140 gCtls->netCtrl.addInterfaceAddress(ifaceIndex, address); in onEvent()
142 bool shouldDestroy = gCtls->netCtrl.removeInterfaceAddress(ifaceIndex, address); in onEvent()
DNetdConstants.cpp39 return android::net::gCtls->iptablesRestoreCtrl.execute(target, commands, output); in execIptablesRestoreWithOutput()
DControllers.cpp303 Controllers* gCtls = nullptr; variable
DMDnsSdListener.cpp49 using android::net::gCtls;
70 } else if ((netId = gCtls->netCtrl.getNetworkForInterface(interfaceName)) == NETID_UNSET) { in ifaceIndexToNetId()
DTcpSocketMonitor.cpp232 const auto listener = gCtls->eventReporter.getNetdEventListener(); in poll()
DNetworkController.cpp1031 android::net::gCtls->tcpSocketMonitor.resumePolling(); in updateTcpSocketMonitorPolling()
1033 android::net::gCtls->tcpSocketMonitor.suspendPolling(); in updateTcpSocketMonitorPolling()
/system/netd/server/aidl-fuzzers/
DMDnsServiceFuzzer.cpp24 using android::net::gCtls;
28 gCtls = new android::net::Controllers(); in LLVMFuzzerInitialize()
29 gCtls->init(); in LLVMFuzzerInitialize()
DNetdNativeServiceFuzzer.cpp26 using android::net::gCtls;
32 gCtls = new android::net::Controllers(); in LLVMFuzzerInitialize()
33 gCtls->init(); in LLVMFuzzerInitialize()
DNetdHwAidlServiceFuzzer.cpp26 using android::net::gCtls;
30 gCtls = new android::net::Controllers(); in LLVMFuzzerInitialize()
31 gCtls->init(); in LLVMFuzzerInitialize()