From 826d8e03033fe132d0ff0dc4e56cd21c2e0ccce4 Mon Sep 17 00:00:00 2001 From: Emmanuelle Laprise Date: Mon, 2 Jul 2007 19:59:40 -0500 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/node.h b/src/node/node.h index ce19a719e..4e4e7b8c7 100644 --- a/src/node/node.h +++ b/src/node/node.h @@ -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