summaryrefslogtreecommitdiffstats
path: root/net/dns/dns_protocol.h
diff options
context:
space:
mode:
authorszym@chromium.org <szym@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-26 00:03:59 +0000
committerszym@chromium.org <szym@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-26 00:03:59 +0000
commitd0d49dd80ebcb6c7ca6b8e793a41866b4ad50eda (patch)
tree2eaa08ef3693d86bced45af389742ce3b6cee920 /net/dns/dns_protocol.h
parent0a87909ee992e63975a5e81b9dde328f2740921b (diff)
downloadchromium_src-d0d49dd80ebcb6c7ca6b8e793a41866b4ad50eda.zip
chromium_src-d0d49dd80ebcb6c7ca6b8e793a41866b4ad50eda.tar.gz
chromium_src-d0d49dd80ebcb6c7ca6b8e793a41866b4ad50eda.tar.bz2
DnsClient refactoring + features (timeout, suffix search, server rotation).
DnsClient::Request ==> DnsTransaction DnsTransaction ==> DnsTransactionImpl DnsClient ==> DnsTransactionFactory BUG=109949 TEST=net_unittests --gtest_filter=Dns* Review URL: http://codereview.chromium.org/9190031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119146 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/dns/dns_protocol.h')
-rw-r--r--net/dns/dns_protocol.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/net/dns/dns_protocol.h b/net/dns/dns_protocol.h
index 494429b..25f485a 100644
--- a/net/dns/dns_protocol.h
+++ b/net/dns/dns_protocol.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -75,7 +75,7 @@ namespace dns_protocol {
// Used internally in DnsQuery and DnsResponseParser.
struct NET_EXPORT_PRIVATE Header {
uint16 id;
- uint8 flags[2];
+ uint16 flags;
uint16 qdcount;
uint16 ancount;
uint16 nscount;
@@ -114,6 +114,13 @@ static const uint8 kRcodeNXDOMAIN = 3;
static const uint8 kRcodeNOTIMP = 4;
static const uint8 kRcodeREFUSED = 5;
+// DNS flags.
+static const uint16 kFlagResponse = 0x8000;
+static const uint16 kFlagRA = 0x80;
+static const uint16 kFlagRD = 0x100;
+static const uint16 kFlagTC = 0x200;
+static const uint16 kFlagAA = 0x400;
+
} // namespace dns_protocol
} // namespace net