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

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, 7 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 38f93c10659d07879467ff9dec0515667e0a63dc..ed20d151215991856dd0ea6d0cca0cba83a9b903 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_listener.h » ('j') | net/dns/mdns_listener.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698