# HG changeset patch # User Emmanuelle Laprise # Date 1183424380 18000 # Node ID fc8942ceaef1a83d4b0ee29922df08bc4d412e87 # Parent 1f600c2aec771b7fce96bb4014be3d49c2efb6ce 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. diff -r 1f600c2aec77 -r fc8942ceaef1 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 @@ private: * at this point to setup the node's receive function for * the NetDevice packets. */ - virtual void DoAddDevice (Ptr device) const = 0; + virtual void DoAddDevice (Ptr device) = 0; uint32_t m_id; // Node id for this node uint32_t m_sid; // System id for this node