/packages/modules/DnsResolver/ |
D | DnsTlsServer.h | 34 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
|
D | DnsTlsServer.cpp | 95 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()
|
D | DnsTlsDispatcher.h | 53 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,
|
D | DnsTlsDispatcher.cpp | 51 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()
|
D | PrivateDnsConfiguration.h | 49 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
|
D | DnsTlsTransport.h | 44 DnsTlsTransport(const DnsTlsServer& server, unsigned mark, in DnsTlsTransport() 58 static bool validate(const DnsTlsServer& server, uint32_t mark); 73 const DnsTlsServer mServer;
|
D | PrivateDnsConfigurationTest.cpp | 179 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()
|
D | IDnsTlsSocketFactory.h | 27 struct DnsTlsServer; 35 const DnsTlsServer& server, unsigned mark, IDnsTlsSocketObserver* _Nonnull observer,
|
D | DnsTlsSocketFactory.h | 30 struct DnsTlsServer; 35 std::unique_ptr<IDnsTlsSocket> createDnsTlsSocket(const DnsTlsServer& server, unsigned mark, in createDnsTlsSocket()
|
D | PrivateDnsConfiguration.cpp | 152 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()
|
D | DnsTlsSocket.h | 81 DnsTlsSocket(const DnsTlsServer& server, unsigned mark, in DnsTlsSocket() 186 const DnsTlsServer mServer;
|
D | DnsTlsTransport.cpp | 276 bool DnsTlsTransport::validate(const DnsTlsServer& server, uint32_t mark) { in validate()
|
D | res_send.cpp | 129 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()
|
D | README-DoT.md | 14 `DnsTlsTransport` for each server (represented by a `DnsTlsServer` struct) and
|
D | Android.bp | 277 "DnsTlsServer.cpp",
|
/packages/modules/DnsResolver/tests/ |
D | resolv_tls_unit_test.cpp | 67 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 …]
|