Hi,
I wrote a code for sending broadcast packets on a wireless network. Now
I want to count how many mac-802_11 collisions occur during the
simulation. I have been created a new variable in the mac-802_11.* files
and I need to access this variable via tcl after the end of the
simulation. How can I do it? I wroted only this references to Mac 802.11
in my tcl code
set val(mac)            Mac/802_11
$ns_ node-config -macType $val(mac)
May be something like
set coll [Mac/802_11 set collisions_] ?
"collisions_" is the variable on the tcl code, I have already binded
this variable with the variable on c "collision" adding on mac-802_11.cc 
the line
bind ("collisions_", &collisions)

-- 
ciao,
Gianpaolo

Reply via email to