Home
last modified time | relevance | path

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

/system/netd/server/
DNetdNativeService.cpp208 gCtls->tcpSocketMonitor.dump(dw); in dump()
215 gCtls->trafficCtrl.dump(dw, true); in dump()
222 gCtls->netCtrl.dump(dw); in dump()
225 gCtls->trafficCtrl.dump(dw, false); in dump()
228 gCtls->xfrmCtrl.dump(dw); in dump()
231 gCtls->clatdCtrl.dump(dw); in dump()
234 gCtls->tetherCtrl.dump(dw); in dump()
277 NETD_LOCKING_RPC(gCtls->firewallCtrl.lock, PERM_NETWORK_STACK, PERM_MAINLINE_NETWORK_STACK); in firewallReplaceUidChain()
278 int err = gCtls->firewallCtrl.replaceUidChain(chainName, isAllowlist, uids); in firewallReplaceUidChain()
284 NETD_LOCKING_RPC(gCtls->bandwidthCtrl.lock, PERM_NETWORK_STACK, PERM_MAINLINE_NETWORK_STACK); in bandwidthEnableDataSaver()
[all …]
DNetdHwService.cpp69 int ret = gCtls->netCtrl.createPhysicalOemNetwork(permission, &netId); in createOemNetwork()
92 return toHalStatus(gCtls->netCtrl.destroyNetwork(netId)); in destroyOemNetwork()
110 return toHalStatus(gCtls->netCtrl.addRoute(netId, ifname.c_str(), destination.c_str(), in addRouteToOemNetwork()
121 return toHalStatus(gCtls->netCtrl.removeRoute(netId, ifname.c_str(), destination.c_str(), in removeRouteFromOemNetwork()
130 return toHalStatus(gCtls->netCtrl.addInterfaceToNetwork(netId, ifname.c_str())); in addInterfaceToOemNetwork()
138 return toHalStatus(gCtls->netCtrl.removeInterfaceFromNetwork(netId, ifname.c_str())); in removeInterfaceFromOemNetwork()
142 std::lock_guard _lock(gCtls->tetherCtrl.lock); in setIpForwardEnable()
144 bool success = enable ? gCtls->tetherCtrl.enableForwarding(FORWARDING_REQUESTER) : in setIpForwardEnable()
145 gCtls->tetherCtrl.disableForwarding(FORWARDING_REQUESTER); in setIpForwardEnable()
152 std::lock_guard _lock(gCtls->tetherCtrl.lock); in setForwardingBetweenInterfaces()
Dmain.cpp57 using android::net::gCtls;
74 gCtls->netCtrl.getNetworkContext(netId, uid, netcontext); in getNetworkContextCallback()
88 return gCtls->trafficCtrl.tagSocket(sockFd, tag, uid, geteuid()); in tagSocketCallback()
137 gCtls = new android::net::Controllers(); in main()
138 gCtls->init(); in main()
153 auto status = gCtls->wakeupCtrl.init(logListener.get()); in main()
177 FwmarkServer fwmarkServer(&gCtls->netCtrl, &gCtls->eventReporter, &gCtls->trafficCtrl); in main()
DFirewallController.cpp44 using android::net::gCtls;
165 return gCtls->trafficCtrl.toggleUidOwnerMap(chain, enable); in enableChildChains()
269 return gCtls->trafficCtrl.changeUidOwnerRule(chain, uid, rule, firewallType); in setUidRule()
357 return gCtls->trafficCtrl.replaceUidOwnerMap(name, isAllowlist, uids); in replaceUidChain()
DNetlinkHandler.cpp56 const auto listenerMap = gCtls->eventReporter.getNetdUnsolicitedEventListenerMap(); \
116 gCtls->trafficCtrl.addInterface(iface, ifaceIndex); in onEvent()
152 gCtls->netCtrl.addInterfaceAddress(ifaceIndex, address); in onEvent()
154 bool shouldDestroy = gCtls->netCtrl.removeInterfaceAddress(ifaceIndex, address); in onEvent()
DControllers.h76 extern Controllers* gCtls;
DNetdConstants.cpp39 return android::net::gCtls->iptablesRestoreCtrl.execute(target, commands, output); in execIptablesRestoreWithOutput()
DControllers.cpp312 Controllers* gCtls = nullptr; variable
DBandwidthController.cpp77 using android::net::gCtls;
344 Status status = gCtls->trafficCtrl.updateUidOwnerMap(appUids, matchType, op); in manipulateSpecialApps()
DTcpSocketMonitor.cpp232 const auto listener = gCtls->eventReporter.getNetdEventListener(); in poll()
DNetworkController.cpp943 android::net::gCtls->tcpSocketMonitor.resumePolling(); in updateTcpSocketMonitorPolling()
945 android::net::gCtls->tcpSocketMonitor.suspendPolling(); in updateTcpSocketMonitorPolling()