Home
last modified time | relevance | path

Searched refs:DnsTlsServer (Results 1 – 15 of 15) sorted by relevance

/packages/modules/DnsResolver/
DDnsTlsServer.cpp94 bool AddressComparator::operator() (const DnsTlsServer& x, const DnsTlsServer& y) const { in operator ()()
113 auto make_tie(const DnsTlsServer& s) { in make_tie()
117 bool DnsTlsServer::operator <(const DnsTlsServer& other) const { in operator <()
121 bool DnsTlsServer::operator ==(const DnsTlsServer& other) const { in operator ==()
125 bool DnsTlsServer::wasExplicitlyConfigured() const { in wasExplicitlyConfigured()
129 std::string DnsTlsServer::toIpString() const { in toIpString()
DDnsTlsServer.h34 struct DnsTlsServer : public IPrivateDnsServer { struct
36 DnsTlsServer() {} in DnsTlsServer() function
39 DnsTlsServer(const sockaddr_storage& ss) : ss(ss) {} in DnsTlsServer() function
60 bool operator<(const DnsTlsServer& other) const;
61 bool operator==(const DnsTlsServer& other) const;
97 bool operator()(const DnsTlsServer& x, const DnsTlsServer& y) const; argument
DDnsTlsDispatcher.h53 DnsTlsTransport::Response query(const std::list<DnsTlsServer>& tlsServers,
61 DnsTlsTransport::Response query(const DnsTlsServer& server, unsigned netId, unsigned mark,
79 typedef std::pair<unsigned, const DnsTlsServer> Key;
84 Transport(const DnsTlsServer& server, unsigned mark, unsigned netId, in Transport()
146 Transport* _Nullable addTransport(const DnsTlsServer& server, unsigned mark, unsigned netId)
169 std::list<DnsTlsServer> getOrderedAndUsableServerList(const std::list<DnsTlsServer>& tlsServers,
DDnsTlsDispatcher.cpp51 std::list<DnsTlsServer> DnsTlsDispatcher::getOrderedAndUsableServerList( in getOrderedAndUsableServerList()
52 const std::list<DnsTlsServer>& tlsServers, unsigned netId, unsigned mark) { in getOrderedAndUsableServerList()
58 std::list<DnsTlsServer> existing6; in getOrderedAndUsableServerList()
59 std::list<DnsTlsServer> existing4; in getOrderedAndUsableServerList()
60 std::list<DnsTlsServer> new6; in getOrderedAndUsableServerList()
61 std::list<DnsTlsServer> new4; in getOrderedAndUsableServerList()
108 DnsTlsTransport::Response DnsTlsDispatcher::query(const std::list<DnsTlsServer>& tlsServers, in query()
111 const std::list<DnsTlsServer> servers( in query()
164 DnsTlsTransport::Response DnsTlsDispatcher::query(const DnsTlsServer& server, unsigned netId, in query()
292 DnsTlsDispatcher::Transport* DnsTlsDispatcher::addTransport(const DnsTlsServer& server, in addTransport()
DDnsTlsTransport.h44 DnsTlsTransport(const DnsTlsServer& server, unsigned mark, in DnsTlsTransport()
58 static bool validate(const DnsTlsServer& server, uint32_t mark);
73 const DnsTlsServer mServer;
DPrivateDnsConfigurationTest.cpp168 const DnsTlsServer server(netdutils::IPSockAddr::toIPSockAddr(kServer1, 853)); in TEST_F()
289 DnsTlsServer server(netdutils::IPSockAddr::toIPSockAddr("127.0.0.1", 853)); in TEST_F()
293 DnsTlsServer other = server; in TEST_F()
310 const DnsTlsServer server(netdutils::IPSockAddr::toIPSockAddr(kServer1, 853)); in TEST_F()
365 const DnsTlsServer server1(netdutils::IPSockAddr::toIPSockAddr(kServer1, 853)); in TEST_F()
366 const DnsTlsServer server2(netdutils::IPSockAddr::toIPSockAddr(kServer2, 853)); in TEST_F()
DPrivateDnsConfiguration.cpp72 auto server = std::make_unique<DnsTlsServer>(parsed); in set()
131 DnsTlsServer& dotServer = *static_cast<DnsTlsServer*>(server.get()); in getStatus()
193 DnsTlsServer server = *static_cast<const DnsTlsServer*>(result.value()); in startValidation()
DPrivateDnsConfiguration.h42 std::map<DnsTlsServer, Validation, AddressComparator> serversMap;
44 std::list<DnsTlsServer> validatedServers() const { in validatedServers()
45 std::list<DnsTlsServer> servers; in validatedServers()
DIDnsTlsSocketFactory.h27 struct DnsTlsServer;
35 const DnsTlsServer& server, unsigned mark, IDnsTlsSocketObserver* _Nonnull observer,
DDnsTlsSocketFactory.h30 struct DnsTlsServer;
35 std::unique_ptr<IDnsTlsSocket> createDnsTlsSocket(const DnsTlsServer& server, unsigned mark, in createDnsTlsSocket()
DDnsTlsSocket.h81 DnsTlsSocket(const DnsTlsServer& server, unsigned mark, in DnsTlsSocket()
186 const DnsTlsServer mServer;
DDnsTlsTransport.cpp278 bool DnsTlsTransport::validate(const DnsTlsServer& server, uint32_t mark) { in validate()
DAndroid.bp184 "DnsTlsServer.cpp",
DREADME-DoT.md14 `DnsTlsTransport` for each server (represented by a `DnsTlsServer` struct) and
/packages/modules/DnsResolver/tests/
Dresolv_tls_unit_test.cpp81 SERVER1 = DnsTlsServer(V4ADDR1); in BaseTest()
90 DnsTlsServer SERVER1;
116 const DnsTlsServer& server ATTRIBUTE_UNUSED, in createDnsTlsSocket()
429 const DnsTlsServer& server ATTRIBUTE_UNUSED, in createDnsTlsSocket()
726 const DnsTlsServer& server, in createDnsTlsSocket()
734 std::multiset<std::pair<unsigned, DnsTlsServer>> keys;
749 std::vector<std::pair<unsigned, DnsTlsServer>> keys; in TEST_F()
766 const DnsTlsServer& server = key.second; in TEST_F()
787 bool isAddressEqual(const DnsTlsServer& s1, const DnsTlsServer& s2) { in isAddressEqual()
794 void checkUnequal(const DnsTlsServer& s1, const DnsTlsServer& s2) { in checkUnequal()
[all …]