Bugzilla – Bug 1143
CsmaStarHelper::GetHubDevices() returns spoke devices, not hub devices
Last modified: 2011-08-09 16:20:24 UTC
Created attachment 1113 [details] Fix for bug, replaces m_spokeDevices with m_hubDevices Title says it all, the problem is shown below. This is my first bug/fix submission, so if I have made a mistake, please let me know. NetDeviceContainer CsmaStarHelper::GetHubDevices () const { return m_spokeDevices; } NetDeviceContainer CsmaStarHelper::GetSpokeDevices () const { return m_spokeDevices; } Fix diff is attached
(In reply to comment #0) > Created attachment 1113 [details] > Fix for bug, replaces m_spokeDevices with m_hubDevices > > Title says it all, the problem is shown below. This is my first bug/fix > submission, so if I have made a mistake, please let me know. > > NetDeviceContainer > CsmaStarHelper::GetHubDevices () const > { > return m_spokeDevices; > } > > NetDeviceContainer > CsmaStarHelper::GetSpokeDevices () const > { > return m_spokeDevices; > } > > > Fix diff is attached The following changeset ought to address this http://code.nsnam.org/ns-3-dev/rev/08ae7db938f6