Home
last modified time | relevance | path

Searched refs:NETID_UNSET (Results 1 – 13 of 13) sorted by relevance

/system/netd/client/
DNetdClient.cpp53 std::atomic_uint netIdForProcess(NETID_UNSET);
54 std::atomic_uint netIdForResolv(NETID_UNSET);
153 if (netId != NETID_UNSET && FwmarkClient::shouldSetFwmark(domain)) { in netdClientSocket()
162 if (netId != NETID_UNSET) { in getNetworkForResolv()
166 if ((netIdForResolv & ~NETID_USE_LOCAL_NAMESERVERS) != NETID_UNSET) { in getNetworkForResolv()
170 if (netId != NETID_UNSET) { in getNetworkForResolv()
180 if (netId == NETID_UNSET) { in setNetworkForTarget()
516 unsigned resolvNetId = getNetworkForResolv(NETID_UNSET); in getNetworkForDnsInternal()
/system/netd/include/
Dnetid_client.h24 #define NETID_UNSET 0u macro
/system/netd/server/
DNetworkController.cpp142 mDelegateImpl(new NetworkController::DelegateImpl(this)), mDefaultNetId(NETID_UNSET), in NetworkController()
160 if (netId != NETID_UNSET) { in setDefaultNetwork()
175 if (mDefaultNetId != NETID_UNSET) { in setDefaultNetwork()
200 if (*netId == NETID_UNSET && getVirtualNetworkForUserLocked(uid) == nullptr) { in getNetworkForDnsLocked()
306 const bool explicitlySelected = (nc.app_netid != NETID_UNSET); in getNetworkContext()
336 return NETID_UNSET; in getNetworkForInterfaceLocked()
459 mDefaultNetId = NETID_UNSET; in destroyNetwork()
492 if (existingNetId != NETID_UNSET && existingNetId != netId) { in addInterfaceToNetwork()
787 if (existingNetId == NETID_UNSET) { in modifyRoute()
814 if (mDefaultNetId == NETID_UNSET) { in modifyFallthroughLocked()
DFwmarkServer.cpp244 if (command.netId == NETID_UNSET) { in processClient()
DNdcDispatcher.cpp90 return NETID_UNSET; in stringToNetId()
96 return NETID_UNSET; in stringToNetId()
1103 unsigned netId = NETID_UNSET; in runCommand()
DClatdController.cpp425 if (networkId == NETID_UNSET) { in startClatd()
DRouteController.cpp833 fwmark.netId = NETID_UNSET; in modifyDefaultNetwork()
DNetdNativeService.cpp1026 unsigned netId = NETID_UNSET; in networkClearDefault()
/system/netd/resolv/include/netd_resolv/
Dresolv.h45 #define NETID_UNSET 0u macro
/system/netd/resolv/
Dres_init.cpp142 statp->netid = NETID_UNSET; in res_vinit()
Dgetaddrinfo.cpp262 .app_netid = NETID_UNSET, in getaddrinfo_numeric()
264 .dns_netid = NETID_UNSET, in getaddrinfo_numeric()
Dresolver_test.cpp1720 ASSERT_EQ(0, setNetworkForResolv(NETID_UNSET)); in TEST_F()
3345 ~ScopedSetNetworkForResolv() { EXPECT_EQ(0, setNetworkForResolv(NETID_UNSET)); } in ~ScopedSetNetworkForResolv()
3420 setNetworkForProcess(NETID_UNSET); in TEST_F()
/system/netd/tests/
Dbinder_test.cpp131 setNetworkForProcess(NETID_UNSET); in TearDown()
3199 EXPECT_TRUE(netdService->networkSetDefault(NETID_UNSET).isOk()); in expectVpnFallthroughWorks()