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
>
>