--- a/src/devices/point-to-point/point-to-point-net-device.h Mon Oct 29 14:11:20 2007 +0000
+++ b/src/devices/point-to-point/point-to-point-net-device.h Mon Oct 29 12:48:01 2007 -0700
@@ -144,7 +144,7 @@
* @see PointToPointChannel
* @param p a reference to the received packet
*/
- void Receive (Packet& p);
+ void Receive (Ptr<Packet> p);
private:
/**
@@ -193,14 +193,14 @@
* Adds the necessary headers and trailers to a packet of data in order to
* respect the protocol implemented by the agent.
*/
- void AddHeader(Packet& p, uint16_t protocolNumber);
+ void AddHeader(Ptr<Packet> p, uint16_t protocolNumber);
/**
* Removes, from a packet of data, all headers and trailers that
* relate to the protocol implemented by the agent
* \return Returns true if the packet should be forwarded up the
* protocol stack.
*/
- bool ProcessHeader(Packet& p, uint16_t& param);
+ bool ProcessHeader(Ptr<Packet> p, uint16_t& param);
/**
* Send a Packet Down the Wire.
*
@@ -214,7 +214,7 @@
* @param protocolNumber Protocol Number used to find protocol touse
* @returns true if success, false on failure
*/
- virtual bool SendTo (const Packet& p, const Address& dest,
+ virtual bool SendTo (Ptr<Packet> p, const Address& dest,
uint16_t protocolNumber);
/**
* Start Sending a Packet Down the Wire.
@@ -231,7 +231,7 @@
* @param p a reference to the packet to send
* @returns true if success, false on failure
*/
- bool TransmitStart (Packet &p);
+ bool TransmitStart (Ptr<Packet> p);
/**
* Stop Sending a Packet Down the Wire and Begin the Interframe Gap.
*
@@ -287,7 +287,7 @@
* @see class CallBackTraceSource
* @see class TraceResolver
*/
- CallbackTraceSource<const Packet &> m_rxTrace;
+ CallbackTraceSource<Ptr<const Packet> > m_rxTrace;
/**
* Default data rate. Used for all newly created p2p net devices
*/