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

Unified Diff: net/dns/dns_query.cc

Issue 15733008: Multicast DNS implementation (initial) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mdns_implementation2
Patch Set: Created 7 years, 6 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 72e97cf729949abfe4bc8c239afe9c0c7b701dcb..270757e7be9c9038cf165670f2e8686e9c91e3aa 100644
--- a/net/dns/dns_query.cc
+++ b/net/dns/dns_query.cc
@@ -80,4 +80,10 @@ DnsQuery::DnsQuery(const DnsQuery& orig, uint16 id) {
header->id = base::HostToNet16(id);
}
+void DnsQuery::set_flags(uint16 flags) {
+ dns_protocol::Header* header =
+ reinterpret_cast<dns_protocol::Header*>(io_buffer_->data());
+ header->flags = flags;
+}
+
} // namespace net
« no previous file with comments | « net/dns/dns_query.h ('k') | net/dns/dns_response.h » ('j') | net/dns/mdns_client.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698