Tuesday, April 1, 2008

get a reference to node at MAC layer

The mac layer itself does not have a data or function member to return the node object. However, it has an reference to its physical interface, which can access the node object. My code to access node object in mac-802_11.cc is

((WirelessPhy*)netif_)->node();


Powered by ScribeFire.

No comments: