Lines Matching refs:tetherCtrl
413 NETD_LOCKING_RPC(gCtls->tetherCtrl.lock, PERM_NETWORK_STACK, PERM_MAINLINE_NETWORK_STACK); in tetherApplyDnsInterfaces()
414 *ret = gCtls->tetherCtrl.applyDnsInterfaces(); in tetherApplyDnsInterfaces()
471 NETD_LOCKING_RPC(gCtls->tetherCtrl.lock, PERM_NETWORK_STACK, PERM_MAINLINE_NETWORK_STACK); in tetherGetStats()
472 const auto& statsList = gCtls->tetherCtrl.getTetherStats(); in tetherGetStats()
792 NETD_LOCKING_RPC(gCtls->tetherCtrl.lock, PERM_NETWORK_STACK, PERM_MAINLINE_NETWORK_STACK); in ipfwdEnabled()
793 *status = (gCtls->tetherCtrl.getIpfwdRequesterList().size() > 0) ? true : false; in ipfwdEnabled()
798 NETD_LOCKING_RPC(gCtls->tetherCtrl.lock, PERM_NETWORK_STACK, PERM_MAINLINE_NETWORK_STACK); in ipfwdGetRequesterList()
799 for (const auto& requester : gCtls->tetherCtrl.getIpfwdRequesterList()) { in ipfwdGetRequesterList()
806 NETD_LOCKING_RPC(gCtls->tetherCtrl.lock, PERM_NETWORK_STACK, PERM_MAINLINE_NETWORK_STACK); in ipfwdEnableForwarding()
807 int res = (gCtls->tetherCtrl.enableForwarding(requester.c_str())) ? 0 : -EREMOTEIO; in ipfwdEnableForwarding()
812 NETD_LOCKING_RPC(gCtls->tetherCtrl.lock, PERM_NETWORK_STACK, PERM_MAINLINE_NETWORK_STACK); in ipfwdDisableForwarding()
813 int res = (gCtls->tetherCtrl.disableForwarding(requester.c_str())) ? 0 : -EREMOTEIO; in ipfwdDisableForwarding()
911 NETD_LOCKING_RPC(gCtls->tetherCtrl.lock, PERM_NETWORK_STACK, PERM_MAINLINE_NETWORK_STACK); in tetherStart()
915 int res = gCtls->tetherCtrl.startTethering(dhcpRanges); in tetherStart()
920 NETD_LOCKING_RPC(gCtls->tetherCtrl.lock, PERM_NETWORK_STACK, PERM_MAINLINE_NETWORK_STACK); in tetherStop()
921 int res = gCtls->tetherCtrl.stopTethering(); in tetherStop()
926 NETD_LOCKING_RPC(gCtls->tetherCtrl.lock, PERM_NETWORK_STACK, PERM_MAINLINE_NETWORK_STACK); in tetherIsEnabled()
927 *enabled = gCtls->tetherCtrl.isTetheringStarted(); in tetherIsEnabled()
932 NETD_LOCKING_RPC(gCtls->tetherCtrl.lock, PERM_NETWORK_STACK, PERM_MAINLINE_NETWORK_STACK); in tetherInterfaceAdd()
933 int res = gCtls->tetherCtrl.tetherInterface(ifName.c_str()); in tetherInterfaceAdd()
938 NETD_LOCKING_RPC(gCtls->tetherCtrl.lock, PERM_NETWORK_STACK, PERM_MAINLINE_NETWORK_STACK); in tetherInterfaceRemove()
939 int res = gCtls->tetherCtrl.untetherInterface(ifName.c_str()); in tetherInterfaceRemove()
944 NETD_LOCKING_RPC(gCtls->tetherCtrl.lock, PERM_NETWORK_STACK, PERM_MAINLINE_NETWORK_STACK); in tetherInterfaceList()
945 for (const auto& ifname : gCtls->tetherCtrl.getTetheredInterfaceList()) { in tetherInterfaceList()
953 NETD_LOCKING_RPC(gCtls->tetherCtrl.lock, PERM_NETWORK_STACK, PERM_MAINLINE_NETWORK_STACK); in tetherDnsSet()
954 int res = gCtls->tetherCtrl.setDnsForwarders(netId, dnsAddrs); in tetherDnsSet()
959 NETD_LOCKING_RPC(gCtls->tetherCtrl.lock, PERM_NETWORK_STACK, PERM_MAINLINE_NETWORK_STACK); in tetherDnsList()
960 for (const auto& fwdr : gCtls->tetherCtrl.getDnsForwarders()) { in tetherDnsList()
1147 NETD_LOCKING_RPC(gCtls->tetherCtrl.lock, PERM_NETWORK_STACK, PERM_MAINLINE_NETWORK_STACK); in tetherAddForward()
1149 int res = gCtls->tetherCtrl.enableNat(intIface.c_str(), extIface.c_str()); in tetherAddForward()
1155 NETD_LOCKING_RPC(gCtls->tetherCtrl.lock, PERM_NETWORK_STACK, PERM_MAINLINE_NETWORK_STACK); in tetherRemoveForward()
1156 int res = gCtls->tetherCtrl.disableNat(intIface.c_str(), extIface.c_str()); in tetherRemoveForward()