Home
last modified time | relevance | path

Searched refs:dnsNetId (Results 1 – 5 of 5) sorted by relevance

/system/netd/client/
DNetdClientTest.cpp55 unsigned dnsNetId = 0; in TEST() local
57 EXPECT_EQ(-EBADF, getNetworkForDnsInternal(invalidFd, &dnsNetId)); in TEST()
65 EXPECT_EQ(-EOPNOTSUPP, getNetworkForDnsInternal(clientFd.get(), &dnsNetId)); in TEST()
Dnetdclient_priv.h20 int getNetworkForDnsInternal(int fd, unsigned* dnsNetId);
DNetdClient.cpp501 extern "C" int getNetworkForDns(unsigned* dnsNetId) { in getNetworkForDns() argument
502 if (dnsNetId == nullptr) return -EFAULT; in getNetworkForDns()
508 return getNetworkForDnsInternal(fd, dnsNetId); in getNetworkForDns()
511 int getNetworkForDnsInternal(int fd, unsigned* dnsNetId) { in getNetworkForDnsInternal() argument
542 *dnsNetId = result; in getNetworkForDnsInternal()
/system/netd/include/
DNetdClient.h61 int getNetworkForDns(unsigned* dnsNetId);
/system/netd/resolv/
Dresolver_test.cpp3388 unsigned dnsNetId = 0; in expectNetIdWithLocalNameserversFlag() local
3389 EXPECT_EQ(0, getNetworkForDns(&dnsNetId)); in expectNetIdWithLocalNameserversFlag()
3390 EXPECT_TRUE(checkAndClearUseLocalNameserversFlag(&dnsNetId)); in expectNetIdWithLocalNameserversFlag()
3391 EXPECT_EQ(netId, static_cast<unsigned>(dnsNetId)); in expectNetIdWithLocalNameserversFlag()
3395 unsigned dnsNetId = 0; in expectDnsNetIdEquals() local
3396 EXPECT_EQ(0, getNetworkForDns(&dnsNetId)); in expectDnsNetIdEquals()
3397 EXPECT_EQ(netId, static_cast<unsigned>(dnsNetId)); in expectDnsNetIdEquals()