src/devices/point-to-point/point-to-point-net-device.cc
changeset 1276 e0b88ec7a6be
parent 1275 9582776e3a68
parent 1270 1bcaff94bf03
child 1303 9856d1175cbb
child 1376 ad7e61edfb9d
child 1441 d6f8a7546e7f
equal deleted inserted replaced
1275:9582776e3a68 1276:e0b88ec7a6be
   115 void PointToPointNetDevice::SetInterframeGap(const Time& t)
   115 void PointToPointNetDevice::SetInterframeGap(const Time& t)
   116 {
   116 {
   117   m_tInterframeGap = t;
   117   m_tInterframeGap = t;
   118 }
   118 }
   119 
   119 
   120 bool PointToPointNetDevice::SendTo (Packet& p, const Address& dest, 
   120 bool PointToPointNetDevice::SendTo (const Packet& packet, const Address& dest, 
   121                                     uint16_t protocolNumber)
   121                                     uint16_t protocolNumber)
   122 {
   122 {
       
   123   Packet p = packet;
   123   NS_DEBUG ("PointToPointNetDevice::SendTo (" << &p << ", " << &dest << ")");
   124   NS_DEBUG ("PointToPointNetDevice::SendTo (" << &p << ", " << &dest << ")");
   124   NS_DEBUG ("PointToPointNetDevice::SendTo (): UID is " << p.GetUid () << ")");
   125   NS_DEBUG ("PointToPointNetDevice::SendTo (): UID is " << p.GetUid () << ")");
   125 
   126 
   126   // GFR Comment. Why is this an assertion? Can't a link legitimately
   127   // GFR Comment. Why is this an assertion? Can't a link legitimately
   127   // "go down" during the simulation?  Shouldn't we just wait for it
   128   // "go down" during the simulation?  Shouldn't we just wait for it