Index: net/dns/dns_query.cc |
diff --git a/net/dns/dns_query.cc b/net/dns/dns_query.cc |
index 408b30241b9b9dc7af4a8ebc939c40cb74c7935b..45d7c16c1e3ceb015d823481a8b144da72065d8f 100644 |
--- a/net/dns/dns_query.cc |
+++ b/net/dns/dns_query.cc |
@@ -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. |
@@ -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. |