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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user