[ndnSIM] error in running cs-tracer::install()

Alex Afanasyev alexander.afanasyev at ucla.edu
Thu Nov 14 20:51:10 PST 2013

Hi Yowaraj,

You have incorrectly specified (actually, over-specified) the node on which you wnat to install the tracer.  What you need is just

ndn::CsTracer::Install (consumer1, "cs-trace.txt", Seconds (1));

or (if you need to specify node by the name

ndn::CsTracer::Install (Names::Find<Node> ("Src1"), "cs-trace.txt", Seconds (1));


On Nov 14, 2013, at 7:41 PM, Yowaraj Chhetri <yowarj at gmail.com> wrote:

> Dear All,
> I want to run cs-tarcer::install() to trace cache hit/miss in of the node.
> Can anybody tell me how to run cs-tracer only in one node. I have tried a lot but couldnt succeed. May be my syntax is wrong? Please let me know the correct way to do.
> Thank you in advance...
> I did as follow:
> ndn::CsTracer::Install (consumer1 ("Src1"),"cs-trace.txt", Seconds (1));
> and the error is:
> Waf: Entering directory `/home/akari/ns-dev/ns-3/build'
> [1218/2363] cxx: src/ndnSIM/examples/ndn-tree-with-l2tracer.cc -> build/src/ndnSIM/examples/ndn-tree-with-l2tracer.cc.15.o
> ../src/ndnSIM/examples/ndn-tree-with-l2tracer.cc: In function ‘int main(int, char**)’:
> ../src/ndnSIM/examples/ndn-tree-with-l2tracer.cc:141:43: error: no match for call to ‘(ns3::Ptr<ns3::Node>) (const char [5])’
> Waf: Leaving directory `/home/akari/ns-dev/ns-3/build'
> Build failed
>  -> task in 'ndn-tree-with-l2tracer' failed (exit status 1): 
>     {task 39907088: cxx ndn-tree-with-l2tracer.cc -> ndn-tree-with-l2tracer.cc.15.o}
> ['/usr/bin/g++', '-O0', '-ggdb', '-g3', '-Wall', '-Werror', '-Wno-error=deprecated-declarations', '-fstrict-aliasing', '-Wstrict-aliasing', '-pthread', '-fno-strict-aliasing', '-fwrapv', '-fstack-protector', '-fno-strict-aliasing', '-I.', '-I..', '-I/usr/include/libxml2', '-I/usr/include', '-I/usr/include/python2.7', '-DNS3_ASSERT_ENABLE', '-DNS3_LOG_ENABLE', '-DHAVE_SYS_IOCTL_H=1', '-DHAVE_IF_NETS_H=1', '-DHAVE_NET_ETHERNET_H=1', '-DHAVE_PACKET_H=1', '-DHAVE_SQLITE3=1', '-DHAVE_IF_TUN_H=1', '-DHAVE_GSL=1', '-DNDEBUG', '../src/ndnSIM/examples/ndn-tree-with-l2tracer.cc', '-c', '-o', 'src/ndnSIM/examples/ndn-tree-with-l2tracer.cc.15.o']
> Yowaraj Chhetri,
> Master of Advanced Information Technology
> Kyushu University,
> Fukuoka: Japan
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim

More information about the ndnSIM mailing list