Bugzilla – Bug 1785
Need destination and source mac addresses in MAC trace hooks
Last modified: 2020-04-12 09:19:07 EDT
Created attachment 1688 [details] patch For fixing bug 1645, pyviz needs access to the addresses of the packet in MacTx and MacRx. For completeness, the attached patch adds destination and source addresses to all the trace hooks, where applicable.
Hi Gustavo, Thanks for the patch. I looked through it and the code is good. However, I'm not sure about the meaning of "source" and "destination" for NotifyXXX. Do you want to them to mean "transmitter and receiver" or "original source and destination"? I just want to check that they are correct. Thanks, Daniel
Hello. What pyviz needs, at least, is the transmitter and receiver MAC stations. If an AP is retransmitting a MAC frame from STA1 to STA2, I would like destination to be STA2.macaddr and source to be STA1.macaddr, even though the AP would be the actual transmitter.
Hi, I see why you used GetAddr3() in some places. One thing that I'm not sure is that I think most people would expect these kind of traces to show the immediate sender and receiver. (i.e. with AP, that would show AP address).
Hm.. ideally it would probably be better to just have the WifiMacHeader as parameter, but I'm not sure that is easy to obtain in all places...
Moved to https://gitlab.com/nsnam/ns-3-dev/-/issues/175