/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); 40 writer.WriteU16(dns_protocol::kClassIN); 51 const dns_protocol::Header* header = 52 reinterpret_cast<const dns_protocol::Header*>(io_buffer_->data()); 57 return base::StringPiece(io_buffer_->data() + sizeof(dns_protocol::Header) [all...] |
dns_transaction_unittest.cc | 15 #include "net/dns/dns_protocol.h" 97 dns_protocol::Header* header = 98 reinterpret_cast<dns_protocol::Header*>(response->io_buffer()->data()); 99 header->flags |= base::HostToNet16(dns_protocol::kFlagResponse | rcode); 346 dns_protocol::kDefaultPort)); 418 CHECK_NE(dns_protocol::kRcodeNOERROR, rcode); 603 AddAsyncQueryAndRcode(kT0HostName, kT0Qtype, dns_protocol::kRcodeSERVFAIL); 610 AddAsyncQueryAndRcode(kT0HostName, kT0Qtype, dns_protocol::kRcodeNXDOMAIN); 643 AddAsyncQueryAndRcode(kT0HostName, kT0Qtype, dns_protocol::kRcodeSERVFAIL); 645 AddAsyncQueryAndRcode(kT0HostName, kT0Qtype, dns_protocol::kRcodeSERVFAIL) [all...] |
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...] |
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_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 | 17 #include "net/dns/dns_protocol.h" 45 static const uint16 kType = dns_protocol::kTypeSRV; 76 static const uint16 kType = dns_protocol::kTypeA; 98 static const uint16 kType = dns_protocol::kTypeAAAA; 120 static const uint16 kType = dns_protocol::kTypeCNAME; 142 static const uint16 kType = dns_protocol::kTypePTR; 165 static const uint16 kType = dns_protocol::kTypeTXT; 189 static const uint16 kType = dns_protocol::kTypeNSEC;
|
dns_response.h | 23 namespace dns_protocol { namespace in namespace:net 155 const dns_protocol::Header* header() const;
|
record_parsed.cc | 77 klass &= dns_protocol::kMDnsClassMask; 78 other_klass &= dns_protocol::kMDnsClassMask;
|
dns_test_util.cc | 102 dns_protocol::Header* header = 103 reinterpret_cast<dns_protocol::Header*>(buffer); 104 header->flags |= dns_protocol::kFlagResponse; 113 size_t rdata_size = qtype_ == net::dns_protocol::kTypeA ? 125 writer.WriteU16(net::dns_protocol::kClassIN); 128 if (qtype_ == net::dns_protocol::kTypeA) {
|
mdns_client_unittest.cc | 475 test_client_.CreateListener(dns_protocol::kTypePTR, "_privet._tcp.local", 478 test_client_.CreateListener(dns_protocol::kTypePTR, "_printer._tcp.local", 519 test_client_.CreateListener(dns_protocol::kTypePTR, "_privet._tcp.local", 554 test_client_.CreateListener(dns_protocol::kTypePTR, "_printer._tcp.local", 586 dns_protocol::kTypePTR, "_privet._tcp.local", 611 dns_protocol::kTypePTR, "_privet._tcp.local", 628 test_client_.CreateListener(dns_protocol::kTypeA, 645 dns_protocol::kTypePTR, "_privet._tcp.local", 664 test_client_.CreateListener(dns_protocol::kTypePTR, "_privet._tcp.local", 687 dns_protocol::kTypePTR, "_privet._tcp.local" [all...] |
dns_protocol.h | 13 namespace dns_protocol { namespace in namespace:net 139 } // namespace dns_protocol
|
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",
|
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_test_util.h | 15 #include "net/dns/dns_protocol.h" 22 static const uint16 kT0Qtype = dns_protocol::kTypeA; 63 static const uint16 kT1Qtype = dns_protocol::kTypeA; 97 static const uint16 kT2Qtype = dns_protocol::kTypeA; 130 static const uint16 kT3Qtype = dns_protocol::kTypeA;
|
mdns_client.cc | 8 #include "net/dns/dns_protocol.h" 24 dns_protocol::kDefaultPortMulticast);
|
host_resolver_impl_unittest.cc | [all...] |
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) 498 if (response_->flags() & dns_protocol::kFlagTC) 501 if (response_->rcode() == dns_protocol::kRcodeNXDOMAIN) 503 if (response_->rcode() != dns_protocol::kRcodeNOERROR) 595 if (qtype_ == dns_protocol::kTypeA) 680 if (response && qtype_ == dns_protocol::kTypeA) {
|
/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,
|
/external/chromium_org/cloud_print/gcp20/prototype/ |
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.cc | 16 uint16 klass = net::dns_protocol::kClassIN; 29 header_.flags = net::dns_protocol::kFlagResponse | 30 net::dns_protocol::kFlagAA; 48 AddResponse(service_type, net::dns_protocol::kTypePTR, ttl, rdata, answer); 73 AddResponse(service_name, net::dns_protocol::kTypeSRV, ttl, 87 AddResponse(service_domain_name, net::dns_protocol::kTypeA, ttl, 101 AddResponse(service_domain_name, net::dns_protocol::kTypeAAAA, ttl, 118 AddResponse(service_name, net::dns_protocol::kTypeTXT, ttl, rdata, answer);
|
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: 225 case net::dns_protocol::kTypeSRV: 234 case net::dns_protocol::kTypeA: 242 case net::dns_protocol::kTypeAAAA: 250 case net::dns_protocol::kTypeTXT:
|
dns_response_builder.h | 15 #include "net/dns/dns_protocol.h" 86 net::dns_protocol::Header header_;
|
/external/chromium_org/chrome/common/local_discovery/ |
service_discovery_client_impl.cc | 12 #include "net/dns/dns_protocol.h" 67 net::dns_protocol::kTypePTR, service_type_, this); 114 net::dns_protocol::kTypePTR, service_type_, transaction_flags, 131 if (record->type() == net::dns_protocol::kTypePTR) { 147 DCHECK(record->type() == net::dns_protocol::kTypeSRV || 148 record->type() == net::dns_protocol::kTypeTXT); 151 if (record->type() == net::dns_protocol::kTypeSRV) { 161 if (record->type() != net::dns_protocol::kTypeSRV || 196 net::dns_protocol::kTypeSRV, service_name, watcher); 198 net::dns_protocol::kTypeTXT, service_name, watcher) [all...] |
/external/chromium_org/chrome/browser/local_discovery/ |
privet_traffic_detector.cc | 12 #include "net/dns/dns_protocol.h" 65 new net::IOBufferWithSize(net::dns_protocol::kMaxMulticastSize)), 152 if (rv <= static_cast<int>(sizeof(net::dns_protocol::Header)) || 159 const net::dns_protocol::Header* header = 160 reinterpret_cast<const net::dns_protocol::Header*>(buffer_begin); 162 if (!(header->flags & base::HostToNet16(net::dns_protocol::kFlagResponse)))
|