Bugzilla – Bug 825
UDP-Client-server's packet loss counter not properly reset
Last modified: 2010-04-22 08:37:22 UTC
See http://groups.google.com/group/ns-3-users/browse_thread/thread/56f46fe023d036d2 But in packet-loss-counter.cc, memset (m_receiveBitMap,0,m_bitMapSize); should be replaced with memset (m_receiveBitMap,1,m_bitMapSize); to make sure there won't be any extra packets counted as lost on the first round the bitmap is filled.
bug confirmed and proposed fix by author (Amine). pushing. changeset ce10a6aced1e
Created attachment 844 [details] patch to fix the bug This patch fixes the bug. It initializes the bits of m_receiveBitMap to 1 (0xFF) instead of 0.