[ns] Simple Question

Di-Fa Chang difac@aludra.usc.edu
Wed Jan 14 14:55:07 PST 2004


if your dsr agent class is called 'Agent/DSRAgent',
then try run the command in the beginning of your script:
   Agent/DSRAgent sniffer

On Tue, 13 Jan 2004, Alex Honnef wrote:

>
> Hi,
>
> I add a new command for a new dsr-Protocoll and want to start it.
> My dsr Agent is startet with "-node-config".
>
> I need the Command "cmd sniffer" to start my programm.
>
>
> int DSR::command(int argc, const char*const* argv) {
>     TclObject *obj;
>
>   if (argc == 2) {
>     if (strcmp (argv[1],"sniffer") == 0) {
>       snifferOnly = true;
>       return TCL_OK;
>     }
>   }
>
> $ns_ node-config -adhocRouting DSR
>
> How to start this from the tcl-skript?
>
> Thanks in advance
>
> regards
>
>    alex
> --
> _____________________________________________________________
> Alex Honnef                              jaypie@gmx.de
>
>
>
>
>




More information about the Ns-users mailing list