[Click] nsclick: runclick patch

Eddie Kohler kohler at cs.ucla.edu
Wed Jun 28 13:00:50 EDT 2006


Hi Bart,

Applied, but this is kind of a shame.  Why doesn't "$ns_ run" do the runclicks 
automatically?  Could that be arranged?

Eddie


Bart Braem wrote:
> Hello,
> 
> When using nsclick all nodes should be started with runclick. If not done a 
> very, very strange behaviour will occur. E.g. nodes that trace but do not 
> actively send packets.
> This patch adds the required code to the sample scripts provided with the 
> nsclick patch. We also added an explanation on how to use nsclick to the 
> Click wiki.
> 
> Bart
> 
> --- ns-2.29-patch.orig  2006-06-27 11:02:43.000000000 +0200
> +++ ns-2.29-patch       2006-06-27 11:05:28.000000000 +0200
> @@ -4575,10 +4575,12 @@
>  +#
>  +for {set i 0} {$i < $wirelessnodecount} {incr i} {
>  +    $ns_ initial_node_pos $wireless_node_($i) 10
> ++    [$wireless_node_($i) entry] runclick
>  +}
>  +
>  +for {set i 0} {$i < $wirednodecount} {incr i} {
>  +    $ns_ initial_node_pos $wired_node_($i) 10
> ++    [$wired_node_($i) entry] runclick
>  +}
>  +
>  +$ns_ initial_node_pos $bridge_node_ 10
> @@ -4956,6 +4958,7 @@
>  +#
>  +for {set i 0} {$i < $nodecount} {incr i} {
>  +    $ns_ initial_node_pos $node_($i) 20
> ++    [$wired_node_($i) entry] runclick
>  +}
>  +
>  +#
> @@ -5254,6 +5257,7 @@
>  +#
>  +for {set i 0} {$i < $nodecount} {incr i} {
>  +    $ns_ initial_node_pos $node_($i) 20
> ++    [$node_($i) entry] runclick
>  +}
>  +
>  +#
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click


More information about the click mailing list