src/devices/point-to-point/point-to-point-net-device.cc
changeset 1266 6b27f6b349ba
parent 1186 909e9eb2124e
child 1270 1bcaff94bf03
--- a/src/devices/point-to-point/point-to-point-net-device.cc	Wed Aug 01 19:09:11 2007 +0200
+++ b/src/devices/point-to-point/point-to-point-net-device.cc	Wed Aug 01 19:19:28 2007 +0200
@@ -102,9 +102,10 @@
   m_tInterframeGap = t;
 }
 
-bool PointToPointNetDevice::SendTo (Packet& p, const Address& dest, 
+bool PointToPointNetDevice::SendTo (const Packet& packet, const Address& dest, 
                                     uint16_t protocolNumber)
 {
+  Packet p = packet;
   NS_DEBUG ("PointToPointNetDevice::SendTo (" << &p << ", " << &dest << ")");
   NS_DEBUG ("PointToPointNetDevice::SendTo (): UID is " << p.GetUid () << ")");