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.
This commit is contained in:
Emmanuelle Laprise
2007-07-02 19:59:40 -05:00
parent 7bed39940e
commit 826d8e0303

View File

@@ -160,7 +160,7 @@ private:
* 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