Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of feel2chat
> Sent: quinta-feira, 8 de Março de 2007 20:52
> To: ns-users@ISI.EDU
> Subject: Re: [ns] flooding.tcl (hierarchical network)
>
>
> Will the problem was in a hierarchical network
Will the problem was in a hierarchical network the addresses are represented
as doted string (i.e. 0.8.1) so you need to convert the address to int in
the script.
to convert the address use something like this:
set addressObj [[$ns get-AllocAddrBits ""] get-Address]
set ip [$addressObj str2addr
I have been trying to run the flooding.tcl example but using a hierarchical
network (created using sgb2hierns), yet it didn't work.
It seems the code does not find the right neighbour nodes, I wonder what I'm
missing?
The example work perfect on a flat network.
Cheers,
Z