Re: [ns] Help for list of node under ns2

2007-04-30 Thread Sourabh Bora

1. How do u define "given" packet? My take will be.. saquence number. source
address and destination address (ip) you can access the headers with
header_cmn pointers
2. you can define a global data structure.. (static int * traversalList;) As
an when ur "given" packet reaches a node, store that packets information in
that array.

But the easiest way to start with will be using printf statements. In
aodv.cc you will see a function "recv"
The function handles received packets. Its easy to understand. Just add your
printf statement in that function..wherever u need
printf(" my node id is %i and i have at this time %f  received this packet
%i", index_,NOW,  );

On 4/30/07, leticia bela <[EMAIL PROTECTED]> wrote:
>
> Hi,
>  i Want to declare a list of nodes which will contain all the nodes that
> traversed by a given packet in aodv.cc
>  For example if the packet sent from N1 to N11 visites the N3, N6,N8
> nodes.  at the end,  my list will contain: (N1, N3, N6, N8, N11). That is
> what i want say by visited nodes.
>
>
>  Thanks for your Help
>
>


Re: [ns] Help for list of node under ns2

2007-04-29 Thread Sourabh Bora

Declaring a list of nodes is pretty straightforward. Please be more specific
with your question. I would like to know what you mean by "visited" node.
Thanks

Hi all,

 Please how can i declare a list of nodes under NS and how  add to this list
each visited node.

Thanks


[ns] Help for list of node under ns2

2007-04-29 Thread leticia bela

  Hi all,
 
  Please how can i declare a list of nodes under NS and how  add to this list 
each visited node.

Thanks


 
-
 Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses.


[ns] Help for list of node under ns2

2007-04-25 Thread leticia bela

Hi,
 how can i declare a list of nodes under NS and how  add to this list each 
visited node.

Thanks
 

 
-
 Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses.