add small comment
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Sat May 31 10:47:24 2008 -0700 (20 months ago)
changeset 319903265a7051b6
parent 3198 dc084a4c70bb
child 3200 96e015d15aeb
add small comment
src/common/packet-metadata.cc
     1.1 --- a/src/common/packet-metadata.cc	Sat May 31 10:46:23 2008 -0700
     1.2 +++ b/src/common/packet-metadata.cc	Sat May 31 10:47:24 2008 -0700
     1.3 @@ -496,6 +496,11 @@
     1.4                     available);
     1.5  
     1.6    NS_ASSERT (m_data != 0);  
     1.7 +  /* If the tail we want to replace is located at the end of the data array,
     1.8 +   * and if there is extra room at the end of this array, then, 
     1.9 +   * we can try to use that extra space to avoid falling in the slow
    1.10 +   * path below.
    1.11 +   */
    1.12    if (m_tail + available == m_used &&
    1.13        m_used == m_data->m_dirtyEnd)
    1.14      {