Bug 43 - Remove the const after the DoAddDevice function in the node.h file
Remove the const after the DoAddDevice function in the node.h file
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: network
pre-release
PC All
: P3 major
Assigned To: Emmanuelle Laprise
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-07-02 21:04 EDT by Emmanuelle Laprise
Modified: 2008-07-01 13:32 EDT (History)
0 users

See Also:


Attachments
This is a patch that removes the const from the DoAddDevice function in the Node class (976 bytes, patch)
2007-07-02 21:14 EDT, Emmanuelle Laprise
Details | Diff
Second version of patch to remove the const from the DoAddDevice function (6.24 KB, patch)
2007-07-03 23:46 EDT, Emmanuelle Laprise
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Emmanuelle Laprise 2007-07-02 21:04:32 EDT
This patch removes 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.
Comment 1 Emmanuelle Laprise 2007-07-02 21:14:41 EDT
Created attachment 25 [details]
This is a patch that removes the const from the DoAddDevice function in the Node class
Comment 2 Mathieu Lacage 2007-07-03 01:43:12 EDT
If you also patch the InternetNode subclass to remove the const there, please, apply.
Comment 3 Emmanuelle Laprise 2007-07-03 23:46:13 EDT
Created attachment 26 [details]
Second version of patch to remove the const from the DoAddDevice function
Comment 4 Emmanuelle Laprise 2007-07-18 10:21:32 EDT
The patch has been pushed to ns-3-dev.
Closing.