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

Unified Diff: net/dns/dns_query.cc

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_query.cc
diff --git a/net/dns/dns_query.cc b/net/dns/dns_query.cc
index 408b30241b9b9dc7af4a8ebc939c40cb74c7935b..39f5e79e1253885af1e4408dea6d04c034f41485 100644
--- a/net/dns/dns_query.cc
+++ b/net/dns/dns_query.cc
@@ -29,7 +29,7 @@ DnsQuery::DnsQuery(uint16 id, const base::StringPiece& qname, uint16 qtype)
reinterpret_cast<dns_protocol::Header*>(io_buffer_->data());
memset(header, 0, sizeof(dns_protocol::Header));
header->id = htons(id);
- header->flags[0] = 0x1; // RD bit
+ header->flags = htons(dns_protocol::kFlagRD);
header->qdcount = htons(1);
// Write question section after the header.

Powered by Google App Engine
This is Rietveld 408576698