Removed the const after the DoAddDevice function because it is used to
authorEmmanuelle Laprise <emmanuelle.laprise@bluekazoo.ca>
Mon, 02 Jul 2007 19:59:40 -0500
changeset 936 fc8942ceaef1
parent 912 1f600c2aec77
child 937 67ab6d8b3711
Removed the const after the DoAddDevice function because it is used to add a callback on the packet receive function. But, in some cases (ie ethernet learning), it is going to be needed to have a non-const function that is called on packet reception.
src/node/node.h
--- a/src/node/node.h	Mon Jul 02 19:47:03 2007 +0200
+++ b/src/node/node.h	Mon Jul 02 19:59:40 2007 -0500
@@ -160,7 +160,7 @@
    * at this point to setup the node's receive function for
    * the NetDevice packets.
    */
-  virtual void DoAddDevice (Ptr<NetDevice> device) const = 0;
+  virtual void DoAddDevice (Ptr<NetDevice> device) = 0;
 
   uint32_t    m_id;         // Node id for this node
   uint32_t    m_sid;        // System id for this node