Bug 152 - Typo in csma-channel.cc causes stack overflow
: Typo in csma-channel.cc causes stack overflow
Status: RESOLVED FIXED
: ns-3
devices
: pre-release
: All All
: P3 normal
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2008-03-26 09:06 EDT by
Modified: 2008-07-01 13:32 EDT (History)


Attachments
bugfix (370 bytes, patch)
2008-03-26 09:08 EDT, Guillaume Vu-Brugier
Details | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2008-03-26 09:06:53 EDT
Already fixed for point-to-point-channel.
--

diff -r 177a8a3f3c65 src/devices/csma/csma-channel.cc
--- a/src/devices/csma/csma-channel.cc  Tue Mar 25 17:14:33 2008 -0700
+++ b/src/devices/csma/csma-channel.cc  Wed Mar 26 15:04:22 2008 +0100
@@ -358,7 +358,7 @@ Ptr<NetDevice>
 Ptr<NetDevice>
 CsmaChannel::GetDevice (uint32_t i) const
 {
-  return GetDevice (i);
+  return GetCsmaDevice (i);
 }

 } // namespace ns3
------- Comment #1 From 2008-03-26 09:08:39 EDT -------
Created an attachment (id=118) [details]
bugfix
------- Comment #2 From 2008-03-26 10:15:29 EDT -------
Thanks for the patch.  Pushed in ns-3-dev :
2747:4796695f60fb