<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Chengyu,</div><div><br></div><div>You would need to modify wscript file to include hijacker.cc in your scenario.   You can checkout an example in examples/wscript for "ndn-simple-with-custom-app".</div><div><br></div><div>At the same time, I would encourage you and everybody else against writing scenarios by modifying ndnSIM or NS-3.  My personal recommendation is to use a modular way, using for example the template <a href="https://github.com/cawka/ndnSIM-scenario-template">https://github.com/cawka/ndnSIM-scenario-template</a>.   If you simply copy hijacker.cc to extensions folder and copy your modified version of ndn-tree-app-delay-trace (alongside with topology files), it should compile and work.</div><div><br></div><div>Let us know if you still in trouble with hijacker (either with or without modular way).</div><div><br></div><div>---</div><div>Alex</div><div><br></div><br><div><div>On Feb 25, 2013, at 11:14 PM, Chengyu Fan <<a href="mailto:chengyu@cs.colostate.edu">chengyu@cs.colostate.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><blockquote type="cite" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><div>Hi~</div><div><br></div><div>I want to use the custom app "hijacker" in ndnSIM, so I modify the code of ndn-tree-app-delay-tracer.cc.</div>
<div><br></div><div>Basically I replace codes:</div><div><div>  ndn::AppHelper producerHelper ("ns3::ndn::Producer");</div><div>  producerHelper.SetAttribute ("PayloadSize", StringValue("1024"));  </div>
<div><br></div><div>using: </div><div>  ndn::AppHelper producerHelper ("Hijacker");</div></div><div><br></div><div><br></div><div>However, when I run ndn-tree-app-delay-trace, it prompts the error messages:</div>
<div><br></div><div><b>assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: Hijacker not found", file=../src/core/model/type-id.cc, line=419</b></div><div><b>terminate called without an active exception</b></div>
<div><b><br></b></div><div><b>Command ['/home/chengyu/ndnSIM/ns-3/build/src/ndnSIM/examples/ns3-dev-ndn-tree-app-delay-tracer-debug', '100'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").</b></div>
<div><br></div><div>Does anybody know what the problem is?</div><div><br></div><div>Thanks,</div><div>Chengyu</div></blockquote>
_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br></blockquote></div><br></body></html>