Bug 825

Summary: UDP-Client-server's packet loss counter not properly reset
Product: ns-3 Reporter: Antti Mäkelä <antti.makela>
Component: applicationsAssignee: Mohamed Amine ISMAIL <amine.ismail>
Status: RESOLVED FIXED    
Severity: normal CC: jpelkey
Priority: P5    
Version: pre-release   
Hardware: All   
OS: All   
Attachments: patch to fix the bug

Description Antti Mäkelä 2010-02-25 03:12:59 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.
Comment 1 Josh Pelkey 2010-04-16 13:55:39 UTC
bug confirmed and proposed fix by author (Amine). pushing.

changeset ce10a6aced1e
Comment 2 Mohamed Amine ISMAIL 2010-04-22 08:37:22 UTC
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.