[Click] nsclick patch: configuring wireless interface
Bart Braem
bart.braem at ua.ac.be
Mon Jun 26 09:07:10 EDT 2006
Hello,
Below you find a patch for the ns-2.29 patch. There seems to have been some
change in the configuring of wireless nodes when adding interfaces, the
topology is now required as an argument. With this patch you can use the demo
nsclick tcl scripts again!
Bart
--- ns-2.29-patch.orig 2006-06-26 15:03:22.000000000 +0200
+++ ns-2.29-patch 2006-06-26 15:03:47.000000000 +0200
@@ -4403,7 +4403,7 @@
+ # "eth2" and so on.
+ #
+ $wireless_node_($i) add-interface $wireless_chan_ $prop_ $netll \
-+ $wirelessmac $netifq 1 $wirelessphy $antenna
++ $wirelessmac $netifq 1 $wirelessphy $antenna $wtopo
+
+ #
+ # Now configure the interface eth0
@@ -4484,7 +4484,7 @@
+$bridge_node_ add-wired-interface $wired_chan_ $netll $wiredmac \
+ $netifq 1 $wiredphy
+$bridge_node_ add-interface $wireless_chan_ $prop_ $netll \
-+ $wirelessmac $netifq 1 $wirelessphy $antenna
++ $wirelessmac $netifq 1 $wirelessphy $antenna $wtopo
+
+$bridge_node_ random-motion 0
+$bridge_node_ topography $wtopo
--
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/20060626/4e1d7c82/attachment.pgp
More information about the click
mailing list