/packages/modules/DnsResolver/tests/ |
D | tun_forwarder.h | 80 base::Result<void> validatePacket(netdutils::Slice tunPacket) const; 81 base::Result<void> validateIpv4Packet(netdutils::Slice ipv4Packet) const; 82 base::Result<void> validateIpv6Packet(netdutils::Slice ipv6Packet) const; 83 base::Result<void> validateUdpPacket(netdutils::Slice udpPacket) const; 84 base::Result<void> validateTcpPacket(netdutils::Slice tcpPacket) const; 88 base::Result<void> translatePacket(netdutils::Slice tunPacket) const; 89 base::Result<void> translateIpv4Packet(netdutils::Slice ipv4Packet) const; 90 base::Result<void> translateIpv6Packet(netdutils::Slice ipv6Packet) const; 91 void translateUdpPacket(netdutils::Slice udpPacket, uint32_t oldPseudoSum, 93 void translateTcpPacket(netdutils::Slice tcpPacket, uint32_t oldPseudoSum,
|
D | resolv_test_utils.h | 190 std::string ToString(const android::netdutils::ScopedAddrinfo& ai); 194 std::vector<std::string> ToStrings(const android::netdutils::ScopedAddrinfo& ai);
|
/packages/modules/DnsResolver/ |
D | DnsStats.h | 36 StatsData(const netdutils::IPSockAddr& ipSockAddr) : serverSockAddr(ipSockAddr) { in StatsData() 41 netdutils::IPSockAddr serverSockAddr; 76 StatsRecords(const netdutils::IPSockAddr& ipSockAddr, size_t size); 113 using ServerStatsMap = std::map<netdutils::IPSockAddr, StatsRecords>; 117 bool setServers(const std::vector<netdutils::IPSockAddr>& servers, Protocol protocol); 120 bool addStats(const netdutils::IPSockAddr& server, const DnsQueryEvent& record); 122 std::vector<netdutils::IPSockAddr> getSortedServers(Protocol protocol) const; 127 void dump(netdutils::DumpWriter& dw);
|
D | DnsTlsTransport.cpp | 41 using android::netdutils::setThreadName; 98 base::Result<void> sendUdpQuery(netdutils::IPAddress ip, uint32_t mark, in sendUdpQuery() 100 const sockaddr_storage ss = netdutils::IPSockAddr(ip, 53); in sendUdpQuery() 153 std::future<DnsTlsTransport::Result> DnsTlsTransport::query(const netdutils::Slice query) { in query() 180 const bool sent = mSocket->query(q.newId, netdutils::drop(netdutils::makeSlice(q.query), 2)); in sendQuery() 286 auto r = transport.query(netdutils::makeSlice(query)).get(); in validate() 324 netdutils::Stopwatch stopwatch; in validate() 342 netdutils::Stopwatch stopwatch; in validate() 343 auto r = transport.query(netdutils::makeSlice(query)).get(); in validate()
|
D | Dns64Configuration.h | 83 netdutils::IPPrefix getPrefix64(unsigned netId) const; 85 int setPrefix64(unsigned netId, const netdutils::IPPrefix& pfx) EXCLUDES(mMutex); 88 void dump(netdutils::DumpWriter& dw, unsigned netId); 99 netdutils::IPPrefix prefix64{}; 113 netdutils::IPPrefix getPrefix64Locked(unsigned netId) const REQUIRES(mMutex); 115 bool reportNat64PrefixStatus(unsigned netId, bool added, const netdutils::IPPrefix& pfx)
|
D | DnsTlsDispatcher.h | 54 res_state _Nonnull statp, const netdutils::Slice query, 55 const netdutils::Slice ans, int* _Nonnull resplen); 62 const netdutils::Slice query, const netdutils::Slice ans, 158 DnsTlsTransport::Result queryInternal(Transport& transport, const netdutils::Slice query)
|
D | Dns64Configuration.cpp | 41 using netdutils::DumpWriter; 42 using netdutils::IPAddress; 43 using netdutils::IPPrefix; 44 using netdutils::ScopedAddrinfo; 45 using netdutils::setThreadName; 74 auto backoff = netdutils::BackoffSequence<>::Builder() in startPrefixDiscovery()
|
D | DnsTlsSocket.cpp | 49 using netdutils::enableSockopt; 50 using netdutils::enableTcpKeepAlives; 51 using netdutils::isOk; 52 using netdutils::setThreadName; 53 using netdutils::Slice; 54 using netdutils::Status; 117 return netdutils::status::ok; in tcpConnect() 614 if (!sslWrite(netdutils::makeSlice(buf))) { in sendQuery() 638 if (sslRead(netdutils::makeSlice(response), true) != SSL_ERROR_NONE) { in readResponse() 646 if (sslRead(netdutils::makeSlice(discard), true) != SSL_ERROR_NONE) { in readResponse()
|
D | PrivateDnsConfiguration.h | 59 const netdutils::IPSockAddr sockaddr; 93 void dump(netdutils::DumpWriter& dw) const; 135 void notifyValidationStateUpdate(const netdutils::IPSockAddr& sockaddr, Validation validation, 145 netdutils::BackoffSequence<>::Builder mBackoffBuilder = 146 netdutils::BackoffSequence<>::Builder()
|
D | resolv_cache.h | 112 bool resolv_stats_add(unsigned netid, const android::netdutils::IPSockAddr& server, 120 const std::vector<android::netdutils::IPSockAddr>& serverSockAddrs); 126 const android::netdutils::IPSockAddr& serverSockAddr, 133 void resolv_netconfig_dump(android::netdutils::DumpWriter& dw, unsigned netid);
|
D | DnsTlsSocket.h | 102 bool query(uint16_t id, const netdutils::Slice query) override EXCLUDES(mLock); 115 netdutils::Status tcpConnect() REQUIRES(mLock); 131 bool sslWrite(const netdutils::Slice buffer) REQUIRES(mLock); 137 int sslRead(const netdutils::Slice buffer, bool wait) REQUIRES(mLock);
|
D | DnsTlsDispatcher.cpp | 35 using android::netdutils::IPSockAddr; 36 using android::netdutils::Stopwatch; 37 using netdutils::Slice; 196 netdutils::copy(ans, netdutils::makeSlice(result.response)); in query() 235 const netdutils::Slice query) { in queryInternal()
|
D | PrivateDnsConfigurationTest.cpp | 168 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() 295 other.ss = netdutils::IPSockAddr::toIPSockAddr("127.0.0.1", 5353); in TEST_F() 297 other.ss = netdutils::IPSockAddr::toIPSockAddr("127.0.0.2", 853); 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()
|
D | DnsStats.cpp | 28 using netdutils::DumpWriter; 29 using netdutils::IPAddress; 30 using netdutils::IPSockAddr; 31 using netdutils::ScopedIndent; 174 bool DnsStats::setServers(const std::vector<netdutils::IPSockAddr>& servers, Protocol protocol) { in setServers()
|
D | ResolverController.h | 57 int setPrefix64(unsigned netId, const netdutils::IPPrefix& prefix) { in setPrefix64() 64 int getPrefix64(unsigned netId, netdutils::IPPrefix* prefix); 66 void dump(netdutils::DumpWriter& dw, unsigned netId);
|
D | DnsProxyListener.cpp | 71 using netdutils::ResponseCode; 72 using netdutils::Stopwatch; 80 android::netdutils::OperationLimiter<uid_t> queryLimiter(MAX_QUERIES_PER_UID); 475 bool isValidNat64Prefix(const netdutils::IPPrefix prefix) { in isValidNat64Prefix() 487 bool synthesizeNat64PrefixWithARecord(const netdutils::IPPrefix& prefix, struct hostent* hp) { in synthesizeNat64PrefixWithARecord() 492 struct sockaddr_storage ss = netdutils::IPSockAddr(prefix.ip()); in synthesizeNat64PrefixWithARecord() 522 bool synthesizeNat64PrefixWithARecord(const netdutils::IPPrefix& prefix, addrinfo* result) { in synthesizeNat64PrefixWithARecord() 527 struct sockaddr_storage ss = netdutils::IPSockAddr(prefix.ip()); in synthesizeNat64PrefixWithARecord() 557 bool getDns64Prefix(unsigned netId, netdutils::IPPrefix* prefix) { in getDns64Prefix() 577 const int rval = netdutils::threadLaunch(this); in spawn() [all …]
|
D | Experiments.cpp | 27 using netdutils::DumpWriter; 28 using netdutils::ScopedIndent;
|
D | DnsTlsServer.h | 68 netdutils::IPSockAddr addr() const override { return netdutils::IPSockAddr::toIPSockAddr(ss); } in addr()
|
D | PrivateDnsConfiguration.cpp | 35 using android::netdutils::setThreadName; 393 void PrivateDnsConfiguration::notifyValidationStateUpdate(const netdutils::IPSockAddr& sockaddr, in notifyValidationStateUpdate() 401 void PrivateDnsConfiguration::dump(netdutils::DumpWriter& dw) const { in dump() 403 netdutils::ScopedIndent indentStats(dw); in dump()
|
D | DnsQueryLog.cpp | 54 void DnsQueryLog::dump(netdutils::DumpWriter& dw) const { in dump() 56 netdutils::ScopedIndent indentStats(dw); in dump()
|
D | DnsResolverService.cpp | 43 using android::netdutils::DumpWriter; 44 using android::netdutils::IPPrefix; 254 netdutils::IPPrefix prefix{}; in getPrefix64()
|
D | ResolverController.cpp | 44 using netdutils::DumpWriter; 274 int ResolverController::getPrefix64(unsigned netId, netdutils::IPPrefix* prefix) { in getPrefix64() 275 netdutils::IPPrefix p = mDns64Configuration.getPrefix64(netId); in getPrefix64()
|
D | IDnsTlsSocket.h | 42 virtual bool query(uint16_t id, const netdutils::Slice query) = 0;
|
D | res_debug.cpp | 134 using android::netdutils::Slice; 289 LOG(VERBOSE) << android::netdutils::toHex(Slice(const_cast<uint8_t*>(msg), len), 32); in res_pquery()
|
/packages/modules/DnsResolver/tests/dns_responder/ |
D | dns_tls_frontend.cpp | 38 using android::netdutils::enableSockopt; 39 using android::netdutils::ScopedAddrinfo;
|