[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Please Help:Error creating New Agent.



I am using ns-allinone-2.1b5 and,
I have created a new agent and have made changes in the following files:
ns2.1b5/tcl/lib/ns-agent.tcl
ns2.1b5/tcl/lib/ns-compat.tcl
ns2.1b5/tcl/lib/ns-default.tcl
ns2.1b5/tcl/ex/agent-gen.tcl
ns2.1b5/ns.1

Now if I invoke my agent using a tcl script, it gives me the following
error:
invalid command name "Agent/TCP/Spoofing"
    while executing
"Agent/TCP/Spoofing create _o26 "
    invoked from within
"catch "$className create $o $args" msg"
    (procedure "new" line 3)
    invoked from within
"new Agent/TCP/Spoofing"
    (file "spoof1.tcl" line 15)

where TCP/Spoofing is the name of my agent. So in a way it is not
recognizing my agent, could anyone please tell me if I am required to make
any more changes...I would apprecaite your cooperation.

Thanks,
Ankit Goel.