Dear all,

I have defined a new function [ disp_state() ] in Mac802_11 class, which 
I want to call from my tcl script. So, I added following code in the 
command() function of class Mac802_11 as follows:

////////////////////////////////////////
if (argc == 2) {
                if (strcmp(argv[1], "disp-state") == 0) {
                        disp_state();
                        return TCL_OK;
                }
        }

///////////////////////////////////////

Now the question is how to call this function from my tcl script? Had it 
been a Node level function, I should have called is as

    $ns at time1 $node_($i) disp-state

But the function is in the MAC of each of the node. So, how to access 
each of this node wise MACs individually?


regards,
Mayur

Reply via email to