[ns] Access information from different layer
Amine Dhraief
aminedhraief at gmail.com
Fri Sep 9 02:23:58 PDT 2005
hi,
i have faced the same problem: in my cas i wanted that the mac
communicate sthg to the ll
well you have to do sthg like this :
1-in tcl file :
you make $myroutingagent communicate $ll
1-in DSRAgent.cc
1-1 in commande method:
if (strcmp(argv[1], "communicate") == 0) {
ll_ = (LL*) TclObject::lookup(argv[2]);
assert(ll_);
return (TCL_OK);
}
1-2 you have a pointer to your ll interface :)
hope helped you
Amine Dhraief
More information about the Ns-users
mailing list