[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] more than 8 bits for portaddr with ns2.1b5
Hi
I am using ns-2 (ns2.1b5 to be precise) and I was trying to have more than
255 ports per node. Without uprgrading (for the moment) to the newer version
which I understand support 32 bits port address, I was trying (without
success) to make it work with my actual version.
I am using the following command
set ns [new Simulator -multicast on]
Node expandaddr
$ns multicast
$ns set-address 15 16
(and also tryied $ns set-address-format expanded in place of Node
expandaddr) and I always get the following
# of agents attached to node _o193 exceeds port-field length of 255 bits
while executing
"error "\# of agents attached to node $self exceeds port-field length of
$mask bits\n""
(procedure "_o193" line 10)
(Node attach line 10)
invoked from within
"$node attach $agent"
(procedure "_o7" line 2)
(Simulator attach-agent line 2)
invoked from within
"$ns attach-agent $node(34) $mon_23_245"
(file "sim.tcl" line 3301)
To me, it seems the port bits are not increased to 16. I guess I am doing
something wrong, but I do not know exactly what.
thanks in advance for any help
Sincerely
Francesco Lo Presti