equal
deleted
inserted
replaced
339 // |
339 // |
340 ProcessHeader(packet, protocol); |
340 ProcessHeader(packet, protocol); |
341 |
341 |
342 if (!m_promiscCallback.IsNull ()) |
342 if (!m_promiscCallback.IsNull ()) |
343 { |
343 { |
344 Ptr<Packet> pktCopy = packet->Copy (); |
344 m_promiscCallback (this, packet, protocol, GetRemote (), GetAddress (), NetDevice::PACKET_HOST); |
345 m_promiscCallback (this, pktCopy, protocol, GetRemote (), GetAddress (), NetDevice::PACKET_HOST); |
|
346 } |
345 } |
347 |
346 |
348 m_rxCallback (this, packet, protocol, GetRemote ()); |
347 m_rxCallback (this, packet, protocol, GetRemote ()); |
349 } |
348 } |
350 } |
349 } |
565 } |
564 } |
566 |
565 |
567 void |
566 void |
568 PointToPointNetDevice::SetPromiscReceiveCallback (NetDevice::PromiscReceiveCallback cb) |
567 PointToPointNetDevice::SetPromiscReceiveCallback (NetDevice::PromiscReceiveCallback cb) |
569 { |
568 { |
570 NS_FATAL_ERROR ("not implemented"); |
569 NS_FATAL_ERROR ("PointToPointNetDevice::SetPromiscReceiveCallback(): Not implemented"); |
571 m_promiscCallback = cb; |
570 m_promiscCallback = cb; |
572 } |
571 } |
573 |
572 |
574 bool |
573 bool |
575 PointToPointNetDevice::SupportsSendFrom (void) const |
574 PointToPointNetDevice::SupportsSendFrom (void) const |