Add clarifying comments
authorJosh Pelkey <jpelkey@gatech.edu>
Tue, 30 Mar 2010 12:55:14 -0400
changeset 6167 b920710704c9
parent 6166 0590ed1bdcfb
child 6168 c737d0a0e9a0
Add clarifying comments
src/common/packet.cc
--- a/src/common/packet.cc	Mon Mar 29 20:01:19 2010 -0400
+++ b/src/common/packet.cc	Tue Mar 30 12:55:14 2010 -0400
@@ -126,6 +126,12 @@
   : m_buffer (),
     m_byteTagList (),
     m_packetTagList (),
+    /* The upper 32 bits of the packet id in 
+     * metadata is for the system id. For non-
+     * distributed simulations, this is simply 
+     * zero.  The lower 32 bits are for the 
+     * global UID
+     */
     m_metadata ((uint64_t)Simulator::GetSystemId () << 32 | m_globalUid, 0),
     m_nixVector (0)
 {
@@ -162,6 +168,12 @@
   : m_buffer (size),
     m_byteTagList (),
     m_packetTagList (),
+    /* The upper 32 bits of the packet id in 
+     * metadata is for the system id. For non-
+     * distributed simulations, this is simply 
+     * zero.  The lower 32 bits are for the 
+     * global UID
+     */
     m_metadata ((uint64_t)Simulator::GetSystemId () << 32 | m_globalUid, size),
     m_nixVector (0)
 {
@@ -182,6 +194,12 @@
   : m_buffer (),
     m_byteTagList (),
     m_packetTagList (),
+    /* The upper 32 bits of the packet id in 
+     * metadata is for the system id. For non-
+     * distributed simulations, this is simply 
+     * zero.  The lower 32 bits are for the 
+     * global UID
+     */
     m_metadata ((uint64_t)Simulator::GetSystemId () << 32 | m_globalUid, size),
     m_nixVector (0)
 {