[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] another implementation question for ad hocs
These functions are used to format the output to the trace file according
to the protocol used.....
-Vikram
> Hi everybody,
>
> Thanks to Padma's help, I managed to enable selction of my ad hoc
> routing protocol from the node-config command in ns. Now I have a new
> problem...
>
> I have noticed that in the file cmu-trace.cc, there is a switch
> statement (in CMUTrace::format() ) that detects the packet types and
> then calls another function accordingly.
>
> E.g. case PT_AODV:
> format_aodv(p, offset);
> break;
>
> What is the format_aodv/tora/dsr() function used for? I've had a look at
> the code for this function and am not sure of it's significance. Do I
> need to include a format_myagent() function for my protocol?
>
> Many thanks,
> Piyush
> (ns-2.1b7, red hat 7)
>
>
--
Department of ECE, Rice University | 713 348 3786 (O)| 713 664 5650(H)
WWW: http://www.ece.rice.edu/~kanodia