src/node/net-device.h
changeset 568 e1660959ecbb
parent 561 23ee8e81c379
child 582 b10ef84683a5
--- a/src/node/net-device.h	Thu May 10 18:33:52 2007 +0200
+++ b/src/node/net-device.h	Thu May 10 20:19:26 2007 +0200
@@ -79,7 +79,7 @@
    *         returned can be zero if the NetDevice is not yet connected
    *         to any channel.
    */
-  Channel *GetChannel (void) const;
+  Ptr<Channel> GetChannel (void) const;
 
   /**
    * \return the current MacAddress of this interface.
@@ -174,7 +174,7 @@
 
   bool NeedsArp (void) const;
 
-  void SetReceiveCallback (Callback<bool,NetDevice *,const Packet &,uint16_t> cb);
+  void SetReceiveCallback (Callback<bool,Ptr<NetDevice>,const Packet &,uint16_t> cb);
 
  protected:
   /**
@@ -241,7 +241,7 @@
   virtual bool SendTo (Packet& p, const MacAddress& dest) = 0;
   virtual bool DoNeedsArp (void) const = 0;
   virtual TraceResolver *DoCreateTraceResolver (TraceContext const &context) = 0;
-  virtual Channel *DoGetChannel (void) const = 0;
+  virtual Ptr<Channel> DoGetChannel (void) const = 0;
   Ptr<Node>         m_node;
   std::string   m_name;
   uint16_t      m_ifIndex;
@@ -253,7 +253,7 @@
   bool          m_isMulticast;
   bool          m_isPointToPoint;
   Callback<void> m_linkChangeCallback;
-  Callback<bool,NetDevice *,const Packet &,uint16_t> m_receiveCallback;
+  Callback<bool,Ptr<NetDevice>,const Packet &,uint16_t> m_receiveCallback;
 };
 
 }; // namespace ns3