[ns] packets generated number
Madhava N
maddy.ns2 at gmail.com
Wed Mar 12 10:26:23 PDT 2008
Not sure of built in commands but you can call in TCL like disp_count and in
command function call a function and display.
For this maintain array of countpkt[n] where n is no of nodes. Keep
incrementing for every timer expiry of Hello + forward() function + send
functions. Better have it as static variable.
Regards,
Maddy.
On Wed, Mar 12, 2008 at 7:36 PM, amel ksentini <ksentini.amel at gmail.com>
wrote:
>
> hi ns users!
> is there anyone can tell i there is a command to return number of packets
> generated by a source?
> thanks.
>
More information about the Ns-users
mailing list