Bug 152 - Typo in csma-channel.cc causes stack overflow
Typo in csma-channel.cc causes stack overflow
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: devices
pre-release
All All
: P3 normal
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-26 09:06 UTC by Guillaume Vu-Brugier
Modified: 2008-07-01 13:32 UTC (History)
0 users

See Also:


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

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume Vu-Brugier 2008-03-26 09:06:53 UTC
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 Guillaume Vu-Brugier 2008-03-26 09:08:39 UTC
Created attachment 118 [details]
bugfix
Comment 2 Rajib Bhattacharjea 2008-03-26 10:15:29 UTC
Thanks for the patch.  Pushed in ns-3-dev :
2747:4796695f60fb