LEFT | RIGHT |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2007 Emmanuelle Laprise | 3 * Copyright (c) 2007 Emmanuelle Laprise |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 // as either a broadcast, multicast or unicast. We need to hit the mac | 769 // as either a broadcast, multicast or unicast. We need to hit the mac |
770 // packet received trace hook and forward the packet up the stack. | 770 // packet received trace hook and forward the packet up the stack. |
771 // | 771 // |
772 if (packetType != PACKET_OTHERHOST) | 772 if (packetType != PACKET_OTHERHOST) |
773 { | 773 { |
774 m_snifferTrace (originalPacket); | 774 m_snifferTrace (originalPacket); |
775 m_macRxTrace (originalPacket); | 775 m_macRxTrace (originalPacket); |
776 | 776 |
777 if (GetNode ()->GetObject<Ipv4L3ClickProtocol> ()) | 777 if (GetNode ()->GetObject<Ipv4L3ClickProtocol> ()) |
778 { | 778 { |
779 m_rxCallback (this, originalPacket->Copy (), protocol, header.GetSourc
e ()); | 779 m_rxCallback (this, originalPacket, protocol, header.GetSource ()); |
780 } | 780 } |
781 else | 781 else |
782 { | 782 { |
783 m_rxCallback (this, packet, protocol, header.GetSource ()); | 783 m_rxCallback (this, packet, protocol, header.GetSource ()); |
784 } | 784 } |
785 } | 785 } |
786 } | 786 } |
787 | 787 |
788 Ptr<Queue> | 788 Ptr<Queue> |
789 CsmaNetDevice::GetQueue (void) const· | 789 CsmaNetDevice::GetQueue (void) const· |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1005 } | 1005 } |
1006 | 1006 |
1007 bool· | 1007 bool· |
1008 CsmaNetDevice::SupportsSendFrom () const | 1008 CsmaNetDevice::SupportsSendFrom () const |
1009 { | 1009 { |
1010 NS_LOG_FUNCTION_NOARGS (); | 1010 NS_LOG_FUNCTION_NOARGS (); |
1011 return true; | 1011 return true; |
1012 } | 1012 } |
1013 | 1013 |
1014 } // namespace ns3 | 1014 } // namespace ns3 |
LEFT | RIGHT |