[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Quick question about mcast routing
[email protected] writes:
> Hi everyone,
>
> is there a quick way to discover the links belonging to
> a multicast tree created by DM?
>
> Christos.
If this link is i->j, you'll need to check if the head of the link is
an active target in any of i's replicators. Something like this
(untested) :
DM instproc mcast-link {i j} {
$self instvar ns_
set head [[$ns_ link $i $j] head]
foreach rep [$i getReps "*" "*"] {
if { [$rep is-active-target $head] } {
return 1;
}
}
return 0
}
Since mcast uses bi-directional links, you'll have to check both
directions.
-Yuri