src/internet-node/arp-cache.cc
changeset 568 e1660959ecbb
parent 551 12ed30c77cab
child 933 df68dad55087
child 1161 bb72baff8b26
--- a/src/internet-node/arp-cache.cc	Thu May 10 18:33:52 2007 +0200
+++ b/src/internet-node/arp-cache.cc	Thu May 10 20:19:26 2007 +0200
@@ -28,24 +28,21 @@
 
 namespace ns3 {
 
-ArpCache::ArpCache (NetDevice *device, Ipv4Interface *interface)
+ArpCache::ArpCache (Ptr<NetDevice> device, Ipv4Interface *interface)
   : m_device (device), 
     m_interface (interface),
     m_aliveTimeout (Seconds (120)),
     m_deadTimeout (Seconds (100)),
     m_waitReplyTimeout (Seconds (1))
-{
-  m_device->Ref ();
-}
+{}
 
 ArpCache::~ArpCache ()
 {
-  m_device->Unref ();
   Flush ();
 }
 
-NetDevice *
-ArpCache::PeekDevice (void) const
+Ptr<NetDevice>
+ArpCache::GetDevice (void) const
 {
   return m_device;
 }