src/node/net-device.cc
changeset 1303 9856d1175cbb
parent 1266 6b27f6b349ba
child 1304 642d6798feaa
equal deleted inserted replaced
1290:48ebb7788499 1303:9856d1175cbb
   169   m_isPointToPoint = false;
   169   m_isPointToPoint = false;
   170 }
   170 }
   171 
   171 
   172 // Receive packet from above
   172 // Receive packet from above
   173 bool 
   173 bool 
   174 NetDevice::Send(const Packet& p, const Address& dest, uint16_t protocolNumber)
   174 NetDevice::Send(Packet& p, const Address& dest, uint16_t protocolNumber)
   175 {
   175 {
   176   if (m_isUp)
   176   if (m_isUp)
   177     {
   177     {
   178       return SendTo(p, dest, protocolNumber);
   178       return SendTo(p, dest, protocolNumber);
   179     }
   179     }
   195   return DoGetChannel ();
   195   return DoGetChannel ();
   196 }
   196 }
   197 
   197 
   198 // Receive packets from below
   198 // Receive packets from below
   199 bool
   199 bool
   200 NetDevice::ForwardUp(const Packet& p, uint32_t param, const Address &from)
   200 NetDevice::ForwardUp( Packet& p, uint32_t param, const Address &from)
   201 {
   201 {
   202   bool retval = false;
   202   bool retval = false;
   203 
   203 
   204   NS_DEBUG ("NetDevice::ForwardUp: UID is " << p.GetUid()
   204   NS_DEBUG ("NetDevice::ForwardUp: UID is " << p.GetUid()
   205             << " device is: " << GetName());
   205             << " device is: " << GetName());