--- a/src/internet-node/ipv4.h Thu May 10 18:33:52 2007 +0200
+++ b/src/internet-node/ipv4.h Thu May 10 20:19:26 2007 +0200
@@ -165,7 +165,7 @@
* to disable it, you can invoke Ipv4Interface::SetDown which will
* make sure that it is never used during packet forwarding.
*/
- uint32_t AddInterface (NetDevice *device);
+ uint32_t AddInterface (Ptr<NetDevice> device);
/**
* \param i index of interface to return
* \returns the requested interface
@@ -182,7 +182,7 @@
* Try to find an Ipv4Interface whose NetDevice is equal to
* the input NetDevice.
*/
- Ipv4Interface *FindInterfaceForDevice (NetDevice const*device);
+ Ipv4Interface *FindInterfaceForDevice (Ptr<const NetDevice> device);
/**
@@ -192,7 +192,7 @@
* - implement a per-NetDevice ARP cache
* - send back arp replies on the right device
*/
- virtual void Receive(Packet& p, NetDevice *device);
+ virtual void Receive(Packet& p, Ptr<NetDevice> device);
/**
* \param packet packet to send
@@ -220,7 +220,7 @@
virtual void DoDispose (void);
private:
void SendRealOut (Packet const &packet, Ipv4Header const &ip, Ipv4Route const &route);
- bool Forwarding (Packet const &packet, Ipv4Header &ipHeader, NetDevice *device);
+ bool Forwarding (Packet const &packet, Ipv4Header &ipHeader, Ptr<NetDevice> device);
void ForwardUp (Packet p, Ipv4Header const&ip);
uint32_t AddIpv4Interface (Ipv4Interface *interface);
void SetupLoopback (void);