Home
last modified time | relevance | path

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

/packages/modules/DnsResolver/
DDnsTlsServer.h34 struct DnsTlsServer { struct
36 DnsTlsServer() {} in DnsTlsServer() function
38 explicit DnsTlsServer(const netdutils::IPAddress& ip) in DnsTlsServer() function
39 : DnsTlsServer(netdutils::IPSockAddr(ip, kDotPort)) {} in DnsTlsServer()
40 explicit DnsTlsServer(const netdutils::IPSockAddr& addr) : ss(addr) {} in DnsTlsServer() argument
61 bool operator<(const DnsTlsServer& other) const;
62 bool operator==(const DnsTlsServer& other) const;
94 bool operator()(const DnsTlsServer& x, const DnsTlsServer& y) const; argument
DDnsTlsServer.cpp95 bool AddressComparator::operator() (const DnsTlsServer& x, const DnsTlsServer& y) const { in operator ()()
114 auto make_tie(const DnsTlsServer& s) { in make_tie()
118 bool DnsTlsServer::operator <(const DnsTlsServer& other) const { in operator <()
122 bool DnsTlsServer::operator ==(const DnsTlsServer& other) const { in operator ==()
126 bool DnsTlsServer::wasExplicitlyConfigured() const { in wasExplicitlyConfigured()
130 std::string DnsTlsServer::toIpString() const { in toIpString()
134 std::string DnsTlsServer::toString() const { in toString()
DDnsTlsDispatcher.h53 DnsTlsTransport::Response query(const std::list<DnsTlsServer>& tlsServers,
62 DnsTlsTransport::Response query(const DnsTlsServer& server, unsigned netId, unsigned mark,
80 typedef std::pair<unsigned, const DnsTlsServer> Key;
85 Transport(const DnsTlsServer& server, unsigned mark, unsigned netId, in Transport()
148 Transport* _Nullable addTransport(const DnsTlsServer& server, unsigned mark, unsigned netId)
171 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()
107 DnsTlsTransport::Response DnsTlsDispatcher::query(const std::list<DnsTlsServer>& tlsServers, in query()
111 const std::list<DnsTlsServer> servers( in query()
174 DnsTlsTransport::Response DnsTlsDispatcher::query(const DnsTlsServer& server, unsigned netId, in query()
300 DnsTlsDispatcher::Transport* DnsTlsDispatcher::addTransport(const DnsTlsServer& server, in addTransport()
DPrivateDnsConfiguration.h49 std::map<DnsTlsServer, Validation, AddressComparator> dotServersMap;
53 std::list<DnsTlsServer> validatedServers() const { in validatedServers()
54 std::list<DnsTlsServer> servers; in validatedServers()
86 explicit ServerIdentity(const DnsTlsServer& server) in ServerIdentity()
144 base::Result<DnsTlsServer*> getDotServer(const ServerIdentity& identity, unsigned netId)
147 base::Result<DnsTlsServer*> getDotServerLocked(const ServerIdentity& identity, unsigned netId)
167 bool needsValidation(const DnsTlsServer& server) const REQUIRES(mPrivateDnsLock);
184 std::map<unsigned, std::map<ServerIdentity, DnsTlsServer>> mDotTracker
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.cpp179 const DnsTlsServer server(netdutils::IPSockAddr::toIPSockAddr(kServer1, 853)); in TEST_F()
300 DnsTlsServer server(netdutils::IPSockAddr::toIPSockAddr("127.0.0.1", 853)); in TEST_F()
304 DnsTlsServer other = server; in TEST_F()
321 const DnsTlsServer server(netdutils::IPSockAddr::toIPSockAddr(kServer1, 853)); in TEST_F()
376 const DnsTlsServer server1(netdutils::IPSockAddr::toIPSockAddr(kServer1, 853)); in TEST_F()
377 const DnsTlsServer server2(netdutils::IPSockAddr::toIPSockAddr(kServer2, 853)); in TEST_F()
398 const DnsTlsServer server1(netdutils::IPSockAddr::toIPSockAddr(kServer1, 853)); in TEST_F()
399 const DnsTlsServer server2(netdutils::IPSockAddr::toIPSockAddr(kServer2, 853)); in TEST_F()
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()
DPrivateDnsConfiguration.cpp152 std::map<ServerIdentity, DnsTlsServer> tmp; in setDot()
155 DnsTlsServer server(IPAddress::forString(s)); in setDot()
254 const std::list<DnsTlsServer> validatedServers = status.validatedServers(); in getStatusForMetrics()
259 [&target](DnsTlsServer server) { return server.addr() == target; }); in getStatusForMetrics()
320 const DnsTlsServer* target = result.value(); in requestDotValidation()
345 DnsTlsServer server = *result.value(); in startDotValidation()
506 bool PrivateDnsConfiguration::needsValidation(const DnsTlsServer& server) const { in needsValidation()
522 base::Result<DnsTlsServer*> PrivateDnsConfiguration::getDotServer(const ServerIdentity& identity, in getDotServer()
528 base::Result<DnsTlsServer*> PrivateDnsConfiguration::getDotServerLocked( in getDotServerLocked()
DDnsTlsSocket.h81 DnsTlsSocket(const DnsTlsServer& server, unsigned mark, in DnsTlsSocket()
186 const DnsTlsServer mServer;
DDnsTlsTransport.cpp276 bool DnsTlsTransport::validate(const DnsTlsServer& server, uint32_t mark) { in validate()
Dres_send.cpp129 using android::net::DnsTlsServer;
172 static int res_tls_send(const std::list<DnsTlsServer>& tlsServers, ResState*, const Slice query,
1412 int res_tls_send(const std::list<DnsTlsServer>& tlsServers, ResState* statp, const Slice query, in res_tls_send()
DREADME-DoT.md14 `DnsTlsTransport` for each server (represented by a `DnsTlsServer` struct) and
DAndroid.bp277 "DnsTlsServer.cpp",
/packages/modules/DnsResolver/tests/
Dresolv_tls_unit_test.cpp67 DnsTlsServer SERVER1{V4ADDR1};
93 const DnsTlsServer& server ATTRIBUTE_UNUSED, in createDnsTlsSocket()
406 const DnsTlsServer& server ATTRIBUTE_UNUSED, in createDnsTlsSocket()
703 const DnsTlsServer& server, in createDnsTlsSocket()
711 std::multiset<std::pair<unsigned, DnsTlsServer>> keys;
726 std::vector<std::pair<unsigned, DnsTlsServer>> keys; in TEST_F()
743 const DnsTlsServer& server = key.second; in TEST_F()
764 bool isAddressEqual(const DnsTlsServer& s1, const DnsTlsServer& s2) { in isAddressEqual()
771 void checkUnequal(const DnsTlsServer& s1, const DnsTlsServer& s2) { in checkUnequal()
782 void checkEqual(const DnsTlsServer& s1, const DnsTlsServer& s2) { in checkEqual()
[all …]