hello
i want to add a variable which i set from tcl and use in the protocol AODV
in my tcl i put
.tcl
set ragent [new Agent/AODV 2]
$node_(2) attach $ragent 255
$ragent set victimNode 4
in the AODV protocol
aodv.cc i add
bind("victimNode", &victim_);
in AODV.h
i add nsaddr_t victim_;
finaly in ns_default.tcl
i add
Agent/AODV set attackNode 200
when i print the attack_ variable from AODV.cc it's always equal to 200 , i
set it 4 in the tcl
i dont understand what's the wrong ??
any suggestion??
Regards
_________________________________________________________________
Découvrez tout ce que Windows Live a à vous apporter !
http://www.microsoft.com/windows/windowslive/