[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Emulation fails
Hello, I've got some problems in getting NS emulation to work.
I am working on a FreeBSD3.3/P3 machine (I have also tested NS on
Solaris and win32 but I get the same problem with emulation, as
described below) and have built NS using the "all-in-one-2.1b5" package
available at the dl page. Before compiling it, I enabled 4 packet filters
in the FreeBSD kernel, and they seem to work since tcpdump etc runs fine.
All parts of the package seem to compile without errors, and when i run
./validate all test suites also pass with no errors. I can run all
simulation example scripts included with the package, and have
made some sim scripts of my own. No major problems there.
But if I try to run one of the included example emulation scripts the
following always happens:
bash-2.03# ns em.tcl
invalid command name "Network/Pcap/Live"
while executing
"Network/Pcap/Live create _o11 "
invoked from within
"catch "$className create $o $args" msg"
(procedure "new" line 3)
invoked from within
"new Network/Pcap/Live"
(file "em.tcl" line 20)
bash-2.03#
When i list all "commands" available in ns (by writing ? in the
ns console), i can indeed see that there is no split object called
"Network" defined.
An excerpt from my "commands" list around the point of interest:
....
MeasureMod
MobiCache
MultiSim
NamSimulator
NetworkInterface
Node
Node/Broadcast
Node/MIPBS
Node/MIPMH
Node/MobileNode
Object
....
It seems no emulation-specific "commands" have been included in my NS
compilation, but I can't understand why. There have been no errors
anywhere during the build of the NS all-in-one package.
What am I doing wrong? I've checked for an answer in the documentation but
have found none.
Thanks in advance,
/ Daniel F.