[Ns-bugs] [Bug 1080] Management frame from foreign AP can crash ns-3
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Sat Mar 26 02:47:43 PDT 2011
http://www.nsnam.org/bugzilla/show_bug.cgi?id=1080
--- Comment #2 from Sergio <sertinell at gmail.com> 2011-03-26 05:47:42 EDT ---
I found this bug in Ns-3.10
(In reply to comment #0)
> This bug was reported by Sergio Martínez Tornell
>
> http://mailman.isi.edu/pipermail/ns-developers/2011-March/008771.html
>
> I think I have found a bug in ApWifiMac.
>
> When an AP receive a Mgt packet from another AP, lets say a Beacon
> frame, it doesn't know how to handle it and drops this error:
>
> NS_FATAL_ERROR ("Don't know how to handle frame (type=" <<
> hdr->GetType ()); //Type is five in case of MGT_BEACON
>
> I have fixed it by this patch:
>
> --- a/src/devices/wifi/ap-wifi-mac.cc Wed Jan 05 21:00:01 2011 -0800
> +++ b/src/devices/wifi/ap-wifi-mac.cc Thu Mar 24 20:29:46 2011 +0100
> @@ -530,6 +530,13 @@
> return;
> }
> }
> + else if( from != GetAddress() && hdr->GetAddr1 () != GetAddress () )
> + {
> + // this is an Mgt packet from another AP not for us
> + // we can ignore it.
> + NotifyRxDrop (packet);
> + return;
> + }
> }
--
Configure bugmail: http://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