[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] ns-2.1b8 & MNS v2
O.k. the problem is in 'tcl/mns_v2.0/ns-mpls-simulator.tcl':
Simulator instproc MPLSnode args {
$self instvar linked_mplsnodes_
# let node_factory_ indicate MPLSnode(class)
set tmp [Simulator set node_factory_] <<== HERE
Simulator set node_factory_ MplsNode <<== HERE
set n [$self node]
lappend linked_mplsnodes_ $n
Simulator set node_factory_ $tmp <<== HERE
return $n
}
The 'node_factory_' setting is old-style and not recommended to be used.
It results in 'target_' pointer being set to NULL.
Does anybody know how to solve this problem?
----------------------------------------------------------------------------
Christian Glomb
Siemens AG
Corporate Technology
Networks and Multimedia Communications
Email: [email protected]
----------------------------------------------------------------------------