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 {