[ns] Simple Question

Alex Honnef jaypie@gmx.de
Wed Jan 14 23:20:02 PST 2004


Hi,

thanx for your answer, but that is not my problem. I start DSR as Routing 
Agent with -node-config:

   $ns_ node-config -adhocRouting

I want to activate the sniffer only on 2 of 50 nodes. In the beginning, my 
DSR-Agent is startet but i need how to say, Node 8 and 25 are sniffers ...!
Is there the only way to start on this two nodes a second agent or can i 
activate the sniffer on running dsr-Agents?
There are a few more Commands an i need the command to start additional 
services in my dsr on some Nodes.

Thanx in advance

   alex

Am Mittwoch, 14. Januar 2004 23:53 schrieb Di-Fa Chang:
> 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

-- 
_____________________________________________________________
Alex Honnef                              jaypie@gmx.de
ICQ: 124468779

Wie oft ist die Mona Lisa schon kopiert worden. Und trotzdem 
stehen die Leute nach wie vor Schlange, um sich das Original 
anzusehen.

Louis Armstrong (1900-71), amerik. Jazzmusiker






More information about the Ns-users mailing list