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.
--- 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