I get the following error in terminal when i execute my file..
ns dsdv-example.tcl
num_nodes is set 3
invalid command name "-macType"
while executing
"-macType $val(mac) \
-ifqType $val(ifq) \
-ifqLen $val(ifqlen) \
-antType $val(ant) \
-propType $val(prop) \
-phyType $val(netif) \
-chann..."
(fi
Em 13/10/12 21:00, ns-users-requ...@isi.edu escreveu:
Hi, Vivek!
Please, post your script file .tcl.
> Message: 1
> Date: Sat, 13 Oct 2012 10:25:56 +0530
> From: vivek arya <1viveka...@gmail.com>
> Subject: [ns] Help .. Error running wireless protocols in ns2.
> To: ns-us
Here is the code..
# Define options
set val(chan) Channel/WirelessChannel;# channel type
set val(prop) Propagation/TwoRayGround ;# radio-propagation
model
set val(netif) Phy/WirelessPhy;# network interface type
set val(mac)Mac/802_11