Dear all,

at the moment I'm trying to insert a shaper (e.g., LLShaper) into a node in
my wireless ad-hoc (802.11) scenario. If found out how to insert Connectors
(as the LLShaper is) for wired links, but since there are no 'links' for
wireless nodes, I don't know how to insert them. Does anyone of you have an
idea on how to insert such a shaper (which is a Connector) onto a node (for
instance, between a CBR traffic source and a TCP agent)?

For completeness, for wired nodes a shaper can be inserted as follows:

Simulator instproc insert-shaper {shaper n1 n2} {
$self instvar link_
set sid [$n1 id]
set did [$n2 id]
set templink $link_($sid:$did)
set linktarget [$templink get-target]
$templink set-target $shaper
$shaper target $linktarget
} 

SimpleLink instproc set-target {tg} {
$self instvar link_
$link_ target $tg
}

SimpleLink instproc get-target {} {
$self instvar link_
set tg [$link_ target]
return $tg 
}

However, how to do it for wireless links (for which no $link_ variable
exists)?                                          

Reply via email to