[Ns-bugs] [Bug 341] Get unexpected dropped packets when using SetSendCallback with heavy traffic
bugzilla-daemon@nsnam-www.ece.gatech.edu
bugzilla-daemon at nsnam-www.ece.gatech.edu
Mon Sep 15 22:17:04 PDT 2008
http://www.nsnam.org/bugzilla/show_bug.cgi?id=341
------- Comment #5 from mathieu.lacage at sophia.inria.fr 2008-09-16 01:17 -------
the following untested patch should fix your problem:
diff -r a60aeddab0fe src/node/packet-socket.cc
--- a/src/node/packet-socket.cc Sun Sep 14 17:55:30 2008 -0700
+++ b/src/node/packet-socket.cc Mon Sep 15 22:16:54 2008 -0700
@@ -26,6 +26,7 @@
#include "ns3/packet.h"
#include "ns3/uinteger.h"
#include "ns3/trace-source-accessor.h"
+#include "ns3/simulator.h"
#include <algorithm>
@@ -328,7 +329,8 @@ PacketSocket::SendTo (Ptr<Packet> p, uin
}
if (!error)
{
- NotifyDataSent (p->GetSize ());
+ Simulator::ScheduleNow (&PacketSocket::NotifyDataSent, this, p->GetSize
());
+ //NotifyDataSent (p->GetSize ());
}
if (error)
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Ns-bugs
mailing list