do not use Packet objects directly. Use Ptr<Packet> instead

This commit is contained in:
Mathieu Lacage committed 2007-10-01 14:15:56 +02:00
1 parent 526a495f67
commit af548b9f4a
63 files changed
+493 -498

No files matched your search

+2 -1
View File
@@ -23,6 +23,7 @@
#include "net-device.h"
#include "application.h"
#include "packet-socket-factory.h"
#include "ns3/packet.h"
#include "ns3/simulator.h"
#include "ns3/composite-trace-resolver.h"
@@ -199,7 +200,7 @@ Node::UnregisterProtocolHandler (ProtocolHandler handler)
}
bool
Node::ReceiveFromDevice (Ptr<NetDevice> device, const Packet &packet,
Node::ReceiveFromDevice (Ptr<NetDevice> device, Ptr<Packet> packet,
uint16_t protocol, const Address &from)
{
bool found = false;