Dear Shiny,

This is a more of a programming question rather than NS2. Perhaps you
can check with other programming related forums.

In the programming point of view for sure it can be done but you have
to check if it is logically sound from simulator or real life
implementation point of view. Assume you like to read a content of
source node address of an ACK packet from MAC layer (mac-802.11.cc) at
Physical Layer (wireless-phy.cc), since current frame format of ACK
does not carry that information, you may create a new field to carry
this information for you. So when you read it at physical layer, your
are not only reading the variables from two different files, but also
logically sound, as you are reading the packet content which flows
from MAC to Physical layer when it flows out from destination (Data)
node.

Good Luck.

rgds
Saravanan K

On Wed, Jan 30, 2013 at 4:29 AM, shiny <shiny....@gmail.com> wrote:
>
> hi all,
> how to include variables from one .cc file to other?
>
> --
> With Regards,
> John Shiny.J

Reply via email to