Re: [ns] how to access the variables in .cc files?

2013-02-05 Thread abinaya rajendhiran

hi all,wat does nrexmitpack_ refers???

On Tue, Feb 5, 2013 at 4:10 PM, Saravanan Kandasamy svana...@gmail.comwrote:

 Mate,

 Do post this to the mailing list mentioning
 1. what you like to achieve,
 2.what you have done so far (research in internet, mathematical
 analysis, logical deduction, changes in codes) to show you had made
 sufficient effort in attending this problem yourself
 3. what is the specific bottle neck you are facing now

 If I am convinced you had done sufficient effort, I may try to come in to
 help.

 rgds
 Saravanan K

 On Tue, Feb 5, 2013 at 4:36 AM, abinaya rajendhiran rabia...@gmail.com
 wrote:
  hi sir,
am ding ma pg project on ns2, am new to ns2,can yo guide me how we
  can find the number of retransmitted packets from trace file...?
 
  On 2/5/13, Saravanan Kandasamy svana...@gmail.com wrote:
 
  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
 
 
 
 
  --
  Reagards.,
  R.Abinaya,B.Tech,(M.E)




-- 
Reagards.,
R.Abinaya,B.Tech,(M.E)


Re: [ns] how to access the variables in .cc files?

2013-02-04 Thread Saravanan Kandasamy

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



[ns] how to access the variables in .cc files?

2013-01-29 Thread shiny

hi all,
how to include variables from one .cc file to other?

-- 
With Regards,
John Shiny.J