- Home Page of ProjectGuideline.com ›
- Forums ›
- Get Help to do your B.E., and M.E., M.Tech., & M.S., Project in Ns2 ›
- passing parmeters from .tcl files to .cc
nadine
Participant
Hi all
As you know, in the implementation of routing protocols, for
example in aodv we have “AODV::AODV(nsaddr_t id) “; so I want to create
a .tcl file in which I have nodes , and each node has an identifier
that will be passed as the nsaddr_t id (the argument of AODV)
how can I do this please?
thank you for your help.
igs3000
Participant
In fact, in a ns2 tcl script, each node will have a unique id by default.
From c++ code of ns2, we can also refer that node id.
Your question is not clear.