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

Unified Diff: net/dns/dns_response.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_response.cc
diff --git a/net/dns/dns_response.cc b/net/dns/dns_response.cc
index 7daf5ff96bbbd301f42aa25cab2e2f3c4e509aab..d29d3c4813cea9c1c712d96ab52e4056912ceb16 100644
--- a/net/dns/dns_response.cc
+++ b/net/dns/dns_response.cc
@@ -231,6 +231,11 @@ unsigned DnsResponse::answer_count() const {
return base::NetToHost16(header()->ancount);
}
+unsigned DnsResponse::additional_answer_count() const {
+ DCHECK(parser_.IsValid());
+ return base::NetToHost16(header()->arcount);
+}
+
base::StringPiece DnsResponse::qname() const {
DCHECK(parser_.IsValid());
// The response is HEADER QNAME QTYPE QCLASS ANSWER.
« no previous file with comments | « net/dns/dns_response.h ('k') | net/dns/mdns_client.h » ('j') | net/dns/mdns_client.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698