Sunday, April 8, 2012

[ns] adding new protocol to ns2

i have followed the steps given in the Marc Greis tutorial to the last word
and put the renamed ping files into a directory named
ns-allinone-2.35/ns2-2.35/eammh/

i've made the necessary changes in files like packet.h etc...
my files are eammh.cc and eammh.h
after doing make clean,make depend,make
the eammh.o file is being created successfully.
but even then i get the following error whenever i try to include
Agent/Eammh in a tcl file.

error:

invalid command name "Agent/Eammh"
while executing
"Agent/Eammh instproc recv {from rtt} {
$self instvar node_
puts "node [$node_ id] received ping answer from \
$from with round-trip-ti..."
(file "eammh.tcl" line 32)

what is the problem?

--
$@V@N
--
View this message in context: http://old.nabble.com/adding-new-protocol-to-ns2-tp33653314p33653314.html
Sent from the ns-users mailing list archive at Nabble.com.

No comments:

Post a Comment

Counter

blogger analytics