[svn] commit: r2999 - in /branches/trac311/src/lib/dns: edns.cc message.cc

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Sep 21 11:38:58 UTC 2010


Author: jinmei
Date: Tue Sep 21 11:38:58 2010
New Revision: 2999

Log:
added some more descriptive comments

Modified:
    branches/trac311/src/lib/dns/edns.cc
    branches/trac311/src/lib/dns/message.cc

Modified: branches/trac311/src/lib/dns/edns.cc
==============================================================================
--- branches/trac311/src/lib/dns/edns.cc (original)
+++ branches/trac311/src/lib/dns/edns.cc Tue Sep 21 11:38:58 2010
@@ -53,10 +53,11 @@
 //                                          <= VERSION_SHIFT (16 bits)
 //                          <= EXTRCODE_SHIFT (24 bits)
 //EXTFLAG_DO:0 0 0 ....................... 0 1 0 0 0 0.....................0
+//VER_MASK:  0 0 0 ........0 1 1 1 1 1 1 1 1 0 0 ..........................0
 
-const uint32_t VERSION_MASK = 0x00ff0000;
 const unsigned int VERSION_SHIFT = 16;
 const unsigned int EXTRCODE_SHIFT = 24;
+const uint32_t VERSION_MASK = 0x00ff0000;
 const uint32_t EXTFLAG_DO = 0x00008000;
 }
 

Modified: branches/trac311/src/lib/dns/message.cc
==============================================================================
--- branches/trac311/src/lib/dns/message.cc (original)
+++ branches/trac311/src/lib/dns/message.cc Tue Sep 21 11:38:58 2010
@@ -166,11 +166,14 @@
 }
 
 namespace {
+// This diagram shows the wire-format representation of the 12-bit extended
+// form RCODEs and its relationship with implementation specific parameters.
+//
 //     0     3               11      15
 //    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 //    |UNUSED | EXTENDED-RCODE | RCODE |
 //    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
-//                            <= EXTRCODE_SHIFT
+//                            <= EXTRCODE_SHIFT (4 bits)
 const unsigned int EXTRCODE_SHIFT = 4;
 }
 




More information about the bind10-changes mailing list