[Ns-bugs] [Bug 1141] New: MeshWifiInterfaceMac adds the supported modes to the wrong remote station
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Thu May 12 09:24:38 PDT 2011
https://www.nsnam.org/bugzilla/show_bug.cgi?id=1141
Summary: MeshWifiInterfaceMac adds the supported modes to the
wrong remote station
Product: ns-3
Version: pre-release
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P5
Component: mesh
AssignedTo: andreev at iitp.ru
ReportedBy: giovanni.distasi at unina.it
CC: ns-bugs at isi.edu
Estimated Hours: 0.0
The following piece of code adds all the modes supported by the station which
is sending to the remote station:
void
MeshWifiInterfaceMac::ForwardDown (Ptr<const Packet> const_packet, Mac48Address
from, Mac48Address to){
...
if (m_stationManager->IsBrandNew (to))
{
// in adhoc mode, we assume that every destination
// supports all the rates we support.
for (uint32_t i = 0; i < m_phy->GetNModes (); i++)
{
m_stationManager->AddSupportedMode (to, m_phy->GetMode (i));
}
m_stationManager->RecordDisassociated (to);
}
...
The to variable is the address of the mesh point device which is the final
destination of the packet (not the next-hop).
Should to be replaced by hdr.GetAddr1(), which is the mac address of the
next-hop interface which is going to receive the packet?
Best regards,
Giovanni
--
Configure bugmail: https://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Ns-bugs
mailing list