Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Unified Diff: net/dns/dns_protocol.h

Issue 9190031: DnsClient refactoring + features (timeout, suffix search, server rotation). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added comments. Fixed tests. Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/dns/dns_protocol.h
diff --git a/net/dns/dns_protocol.h b/net/dns/dns_protocol.h
index 494429bde1dfc288e600046364f0b540728a7754..53998fc57ced3008610de824fc936ac82bb4d25d 100644
--- a/net/dns/dns_protocol.h
+++ b/net/dns/dns_protocol.h
@@ -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,10 @@ static const uint8 kRcodeNXDOMAIN = 3;
static const uint8 kRcodeNOTIMP = 4;
static const uint8 kRcodeREFUSED = 5;
+// DNS flags.
+static const uint16 kFlagRD = 0x100;
+static const uint16 kFlagTC = 0x200;
+
} // namespace dns_protocol
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698