HomeSort by relevance Sort by last modified time
    Searched refs:dns_protocol (Results 1 - 25 of 32) sorted by null

1 2

  /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...]
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 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_response.h 23 namespace dns_protocol { namespace in namespace:net
155 const dns_protocol::Header* header() const;
mdns_client_unittest.cc 456 test_client_.CreateListener(dns_protocol::kTypePTR, "_privet._tcp.local",
459 test_client_.CreateListener(dns_protocol::kTypePTR, "_printer._tcp.local",
500 test_client_.CreateListener(dns_protocol::kTypePTR, "_privet._tcp.local",
535 test_client_.CreateListener(dns_protocol::kTypePTR, "_printer._tcp.local",
567 dns_protocol::kTypePTR, "_privet._tcp.local",
592 dns_protocol::kTypePTR, "_privet._tcp.local",
609 test_client_.CreateListener(dns_protocol::kTypeA,
626 dns_protocol::kTypePTR, "_privet._tcp.local",
645 test_client_.CreateListener(dns_protocol::kTypePTR, "_privet._tcp.local",
668 dns_protocol::kTypePTR, "_privet._tcp.local"
    [all...]
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) {
record_parsed.cc 77 klass &= dns_protocol::kMDnsClassMask;
78 other_klass &= dns_protocol::kMDnsClassMask;
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);
mdns_client_impl.cc 15 #include "net/dns/dns_protocol.h"
50 response_(dns_protocol::kMaxMulticastSize) {
203 if (!(response->flags() & dns_protocol::kFlagResponse))
226 if ((record->klass() & dns_protocol::kMDnsClassMask) !=
227 dns_protocol::kClassIN) {
266 if (record->type() == dns_protocol::kTypeNSEC) {
278 DCHECK_EQ(dns_protocol::kTypeNSEC, record->type());
290 if ((*i)->type() == dns_protocol::kTypeNSEC)
599 client_->core()->QueryCache(dns_protocol::kTypeNSEC, name_, &records);
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...]
  /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;
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_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:
211 case net::dns_protocol::kTypeSRV:
220 case net::dns_protocol::kTypeA:
228 case net::dns_protocol::kTypeTXT:
dns_response_builder.h 13 #include "net/dns/dns_protocol.h"
64 net::dns_protocol::Header header_;
  /external/chromium_org/chrome/utility/local_discovery/
service_discovery_client_impl.cc 12 #include "net/dns/dns_protocol.h"
67 net::dns_protocol::kTypePTR, service_type_, this);
103 net::dns_protocol::kTypePTR, service_type_, transaction_flags,
120 if (record->type() == net::dns_protocol::kTypePTR) {
136 DCHECK(record->type() == net::dns_protocol::kTypeSRV ||
137 record->type() == net::dns_protocol::kTypeTXT);
170 net::dns_protocol::kTypeSRV, service_name, watcher);
172 net::dns_protocol::kTypeTXT, service_name, watcher);
283 net::dns_protocol::kTypeTXT, service_name_,
294 net::dns_protocol::kTypeA
    [all...]
  /external/chromium_org/chrome/browser/local_discovery/
privet_traffic_detector.cc 12 #include "net/dns/dns_protocol.h"
58 new net::IOBufferWithSize(net::dns_protocol::kMaxMulticastSize)),
145 if (rv <= static_cast<int>(sizeof(net::dns_protocol::Header)) ||
152 const net::dns_protocol::Header* header =
153 reinterpret_cast<const net::dns_protocol::Header*>(buffer_begin);
155 if (!(header->flags & base::HostToNet16(net::dns_protocol::kFlagResponse)))

Completed in 2595 milliseconds

1 2