Bug 152

Summary: Typo in csma-channel.cc causes stack overflow
Product: ns-3 Reporter: Guillaume Vu-Brugier <gvubrugier>
Component: devicesAssignee: ns-bugs <ns-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: pre-release   
Hardware: All   
OS: All   
Attachments: bugfix

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