[Click] nsclick: runclick patch
Bart Braem
bart.braem at ua.ac.be
Tue Jun 27 05:09:49 EDT 2006
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
+}
+
+#
--
Bart Braem
PATS research group
Dept. of Mathematics and Computer Sciences
University of Antwerp
G2.36, Building G
Middelheimlaan 1
2020 Antwerpen, Belgium
Phone: +32 (0)3 265.35.19.
Fax: +32 (0)3 265.37.77.
Web: www.pats.ua.ac.be
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 309 bytes
Desc: not available
Url : https://amsterdam.lcs.mit.edu/pipermail/click/attachments/20060627/0339a92b/attachment.pgp
More information about the click
mailing list