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 $addr]

cheers,
Z

On 2/25/07, feel2chat < [EMAIL PROTECTED]> wrote:
>
> 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
>

Reply via email to