/external/chromium_org/net/dns/ |
dns_query.cc | 13 #include "net/dns/dns_protocol.h" 26 io_buffer_ = new IOBufferWithSize(sizeof(dns_protocol::Header) + 28 dns_protocol::Header* header = 29 reinterpret_cast<dns_protocol::Header*>(io_buffer_->data()); 30 memset(header, 0, sizeof(dns_protocol::Header)); 32 header->flags = base::HostToNet16(dns_protocol::kFlagRD); 39 writer.WriteU16(dns_protocol::kClassIN); 50 const dns_protocol::Header* header = 51 reinterpret_cast<const dns_protocol::Header*>(io_buffer_->data()); 56 return base::StringPiece(io_buffer_->data() + sizeof(dns_protocol::Header) [all...] |
dns_transaction_unittest.cc | 16 #include "net/dns/dns_protocol.h" 98 dns_protocol::Header* header = 99 reinterpret_cast<dns_protocol::Header*>(response->io_buffer()->data()); 100 header->flags |= base::HostToNet16(dns_protocol::kFlagResponse | rcode); 342 dns_protocol::kDefaultPort)); 414 CHECK_NE(dns_protocol::kRcodeNOERROR, rcode); 599 AddAsyncQueryAndRcode(kT0HostName, kT0Qtype, dns_protocol::kRcodeSERVFAIL); 606 AddAsyncQueryAndRcode(kT0HostName, kT0Qtype, dns_protocol::kRcodeNXDOMAIN); 639 AddAsyncQueryAndRcode(kT0HostName, kT0Qtype, dns_protocol::kRcodeSERVFAIL); 641 AddAsyncQueryAndRcode(kT0HostName, kT0Qtype, dns_protocol::kRcodeSERVFAIL) [all...] |
record_parsed_unittest.cc | 7 #include "net/dns/dns_protocol.h" 35 sizeof(dns_protocol::Header)); 44 ASSERT_EQ(dns_protocol::kTypeCNAME, record->type()); 45 ASSERT_EQ(dns_protocol::kClassIN, record->klass()); 57 sizeof(dns_protocol::Header));
|
dns_response.cc | 14 #include "net/dns/dns_protocol.h" 56 out->reserve(dns_protocol::kMaxNameLength); 62 switch (*p & dns_protocol::kLabelMask) { 63 case dns_protocol::kLabelPointer: { 77 offset &= dns_protocol::kOffsetMask; 83 case dns_protocol::kLabelDirect: { 145 : io_buffer_(new IOBufferWithSize(dns_protocol::kMaxUDPSize + 1)) { 179 const size_t hdr_size = sizeof(dns_protocol::Header); 196 size_t hdr_size = sizeof(dns_protocol::Header); 221 return base::NetToHost16(header()->flags) & ~(dns_protocol::kRcodeMask) [all...] |
dns_query_unittest.cc | 10 #include "net/dns/dns_protocol.h" 41 DnsQuery q1(0xbeef, qname, dns_protocol::kTypeA); 42 EXPECT_EQ(dns_protocol::kTypeA, q1.qtype()); 58 DnsQuery q1(0, qname, dns_protocol::kTypeA);
|
record_rdata.h | 18 #include "net/dns/dns_protocol.h" 46 static const uint16 kType = dns_protocol::kTypeSRV; 77 static const uint16 kType = dns_protocol::kTypeA; 99 static const uint16 kType = dns_protocol::kTypeAAAA; 121 static const uint16 kType = dns_protocol::kTypeCNAME; 143 static const uint16 kType = dns_protocol::kTypePTR; 166 static const uint16 kType = dns_protocol::kTypeTXT; 190 static const uint16 kType = dns_protocol::kTypeNSEC;
|
dns_test_util.cc | 20 #include "net/dns/dns_protocol.h" 83 dns_protocol::Header* header = 84 reinterpret_cast<dns_protocol::Header*>(buffer); 85 header->flags |= dns_protocol::kFlagResponse; 94 size_t rdata_size = qtype_ == net::dns_protocol::kTypeA ? 106 writer.WriteU16(net::dns_protocol::kClassIN); 109 if (qtype_ == net::dns_protocol::kTypeA) {
|
mdns_client_unittest.cc | 471 dns_protocol::kTypePTR, "_privet._tcp.local", &delegate_privet); 473 dns_protocol::kTypePTR, "_printer._tcp.local", &delegate_printer); 513 dns_protocol::kTypePTR, "_privet._tcp.local", &delegate_privet); 547 dns_protocol::kTypePTR, "_printer._tcp.local", &delegate_printer); 578 dns_protocol::kTypePTR, "_privet._tcp.local", 603 dns_protocol::kTypePTR, "_privet._tcp.local", 620 dns_protocol::kTypeA, "codereview.chromium.local", 636 dns_protocol::kTypePTR, "_privet._tcp.local", 655 dns_protocol::kTypePTR, "_privet._tcp.local", 678 dns_protocol::kTypePTR, "_privet._tcp.local" [all...] |
record_parsed.cc | 77 klass &= dns_protocol::kMDnsClassMask; 78 other_klass &= dns_protocol::kMDnsClassMask;
|
mdns_cache_unittest.cc | 148 sizeof(dns_protocol::Header)); 180 sizeof(dns_protocol::Header)); 342 EXPECT_EQ(dns_protocol::kTypeA, 344 EXPECT_EQ(dns_protocol::kTypeAAAA, 350 sizeof(dns_protocol::Header)); 359 cache_.FindDnsRecords(dns_protocol::kTypeCNAME, "codereview.chromium.org", 369 cache_.FindDnsRecords(dns_protocol::kTypeCNAME, "codereview.chromium.org",
|
mdns_client_impl.cc | 15 #include "net/dns/dns_protocol.h" 36 response_(new DnsResponse(dns_protocol::kMaxMulticastSize)), 155 dns_protocol::kDefaultPortMulticast); 233 if (!(response->flags() & dns_protocol::kFlagResponse)) 256 if ((record->klass() & dns_protocol::kMDnsClassMask) != 257 dns_protocol::kClassIN) { 296 if (record->type() == dns_protocol::kTypeNSEC) { 308 DCHECK_EQ(dns_protocol::kTypeNSEC, record->type()); 320 if ((*i)->type() == dns_protocol::kTypeNSEC) 631 client_->core()->QueryCache(dns_protocol::kTypeNSEC, name_, &records) [all...] |
dns_response_unittest.cc | 11 #include "net/dns/dns_protocol.h" 133 EXPECT_EQ(dns_protocol::kTypeCNAME, record.type); 134 EXPECT_EQ(dns_protocol::kClassIN, record.klass); 143 EXPECT_EQ(dns_protocol::kTypeA, record.type); 144 EXPECT_EQ(dns_protocol::kClassIN, record.klass); 162 scoped_ptr<DnsQuery> query(new DnsQuery(0xcafe, qname, dns_protocol::kTypeA)); 221 new DnsQuery(0xcafe, qname, dns_protocol::kTypeCNAME)); 317 EXPECT_EQ(dns_protocol::kTypeA, record.type); 375 EXPECT_EQ(dns_protocol::kTypeA, record.type);
|
dns_transaction.cc | 31 #include "net/dns/dns_protocol.h" 265 if (response_->flags() & dns_protocol::kFlagTC) 268 if (response_->rcode() == dns_protocol::kRcodeNXDOMAIN) 270 if (response_->rcode() != dns_protocol::kRcodeNOERROR) 475 if (response_->flags() & dns_protocol::kFlagTC) 478 if (response_->rcode() == dns_protocol::kRcodeNXDOMAIN) 480 if (response_->rcode() != dns_protocol::kRcodeNOERROR) 565 if (qtype_ == dns_protocol::kTypeA) 650 if (response && qtype_ == dns_protocol::kTypeA) {
|
dns_response.h | 23 namespace dns_protocol { namespace in namespace:net 155 const dns_protocol::Header* header() const;
|
dns_session_unittest.cc | 14 #include "net/dns/dns_protocol.h" 121 IPEndPoint dns_endpoint(dns_ip, dns_protocol::kDefaultPort);
|
dns_test_util.h | 14 #include "net/dns/dns_protocol.h" 21 static const uint16 kT0Qtype = dns_protocol::kTypeA; 62 static const uint16 kT1Qtype = dns_protocol::kTypeA; 96 static const uint16 kT2Qtype = dns_protocol::kTypeA; 129 static const uint16 kT3Qtype = dns_protocol::kTypeA;
|
/external/chromium_org/tools/android/fake_dns/ |
fake_dns.cc | 25 #include "net/dns/dns_protocol.h" 32 const size_t kMinRequestSize = sizeof(net::dns_protocol::Header) + 6; 38 static_cast<uint16>(0xc000 | sizeof(net::dns_protocol::Header)); 60 net::dns_protocol::Header response; 62 response.flags = htons(net::dns_protocol::kFlagResponse | 63 net::dns_protocol::kFlagAA | 64 net::dns_protocol::kFlagRD | 65 net::dns_protocol::kFlagRA | 66 net::dns_protocol::kRcodeREFUSED); 77 net::dns_protocol::Header header [all...] |
/external/chromium_org/chrome/browser/net/ |
dns_probe_test_util.cc | 9 #include "net/dns/dns_protocol.h" 26 const uint16 kDnsPort = net::dns_protocol::kDefaultPort; 29 const uint16 kTypeA = net::dns_protocol::kTypeA;
|
dns_probe_runner.cc | 16 #include "net/dns/dns_protocol.h" 112 net::dns_protocol::kTypeA,
|
dns_probe_service.cc | 14 #include "net/dns/dns_protocol.h" 44 return IPEndPoint(dns_ip_number, net::dns_protocol::kDefaultPort);
|
/external/chromium_org/chrome/utility/local_discovery/ |
service_discovery_client_impl.cc | 12 #include "net/dns/dns_protocol.h" 58 net::dns_protocol::kTypePTR, service_type_, this); 95 net::dns_protocol::kTypePTR, service_type_, transaction_flags, 112 if (record->type() == net::dns_protocol::kTypePTR) { 128 DCHECK(record->type() == net::dns_protocol::kTypeSRV || 129 record->type() == net::dns_protocol::kTypeTXT); 162 net::dns_protocol::kTypeSRV, service_name, watcher); 164 net::dns_protocol::kTypeTXT, service_name, watcher); 255 net::dns_protocol::kTypeTXT, service_name_, 266 net::dns_protocol::kTypeA [all...] |
/external/chromium_org/cloud_print/gcp20/prototype/ |
dns_response_builder.cc | 16 uint16 klass = net::dns_protocol::kClassIN; 29 header_.flags = net::dns_protocol::kFlagResponse | 30 net::dns_protocol::kFlagAA; 46 AddResponse(service_type, net::dns_protocol::kTypePTR, ttl, rdata); 67 AddResponse(service_name, net::dns_protocol::kTypeSRV, ttl, 80 AddResponse(service_domain_name, net::dns_protocol::kTypeA, ttl, 95 AddResponse(service_name, net::dns_protocol::kTypeTXT, ttl, rdata);
|
dns_packet_parser.h | 10 #include "net/dns/dns_protocol.h" 39 const net::dns_protocol::Header& header() const { return header_; } 68 net::dns_protocol::Header header_;
|
dns_response_builder.h | 13 #include "net/dns/dns_protocol.h" 64 net::dns_protocol::Header header_;
|
dns_sd_server.cc | 20 #include "net/dns/dns_protocol.h" 161 if (parser.header().flags & net::dns_protocol::kFlagResponse) // Not a query. 201 case net::dns_protocol::kTypePTR: 209 case net::dns_protocol::kTypeSRV: 218 case net::dns_protocol::kTypeA: 226 case net::dns_protocol::kTypeTXT:
|