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

Unified Diff: net/dns/dns_protocol.h

Issue 14697022: Cache for mDNS records (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@record_parsed_klassbit
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
« no previous file with comments | « no previous file | net/dns/mdns_cache.h » ('j') | net/dns/mdns_cache.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/dns_protocol.h
diff --git a/net/dns/dns_protocol.h b/net/dns/dns_protocol.h
index 99563b5b6c50722001e1de62c07d99a451f2e3c0..9b723eaff0047d4dc5d6688c227812983c9aeedd 100644
--- a/net/dns/dns_protocol.h
+++ b/net/dns/dns_protocol.h
@@ -90,6 +90,9 @@ static const uint8 kLabelPointer = 0xc0;
static const uint8 kLabelDirect = 0x0;
static const uint16 kOffsetMask = 0x3fff;
+// The top bit of the MDns class is the cache flush bit.
szym 2013/05/14 18:14:27 I'm confused by this comment. What is MDns class?
Noam Samuel 2013/05/14 19:28:01 Sorry about that, the comment is rather vague. I w
+static const uint16 kMDnsClassMask = 0x7FFF;
+
static const int kMaxNameLength = 255;
// RFC 1035, section 4.2.1: Messages carried by UDP are restricted to 512
@@ -129,4 +132,3 @@ static const uint16 kFlagAA = 0x400;
} // namespace net
#endif // NET_DNS_DNS_PROTOCOL_H_
-
« no previous file with comments | « no previous file | net/dns/mdns_cache.h » ('j') | net/dns/mdns_cache.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698