[ndnSIM] Callback unknown error
alexander.afanasyev at ucla.edu
Thu Feb 21 14:04:09 PST 2013
I've done an implementation of this feature and pushed it to the experimental branch (feature-trace-value-for-fib-entry).
Can you check it out? I also would appreciate if you can check that this change didn't break anything else (at least with your simulations).
On Feb 21, 2013, at 1:11 AM, Xiaoke Jiang <shock.jiang at gmail.com> wrote:
> Hi Alex,
> Is it possible to make the Status of FibEntry (Line 105, ndn-fib-entry.h) a TracedCallback type. I think the status is quit important for research on Cache, routing, etc.
> I can get what I want by add NS_LOG, but the problem is after fetch and merge your code, my modification will lose. So is it possible for you to make that change since it 's also very important for future research.
> My Regards,
> Xiaoke Jiang （蒋小可）
> Ph.D Candidate,
> Dept. of Computer Science and Technology,
> Tsinghua University, P. R. China
> On Feb 21, 2013, at 4:35 PM, Alex Afanasyev <alexander.afanasyev at ucla.edu> wrote:
>> In NS-3, Installing applications on a node is not the same as aggregating objects on a node (e.g., installing protocol stacks). As a result, your GetObject call will always return 0 and you get segfault.
>> Instead, you should either call node->GetApplication(...) (not really good choice) or save installed apps in ApplicationContainer (Install returns it). There should be examples of that.
>> On Feb 21, 2013, at 12:27 AM, Xiaoke Jiang <shock.jiang at gmail.com> wrote:
>>> Hi All,
>>> I write my script to trace Producer processing Interest,
>>> static void SinkIst(Ptr<const InterestHeader>, Ptr<App>, Ptr<Face>)
>>> NS_LOG_INFO("< Respodning with ContentObject");
>>> node->GetObject<ns3::ndn::App>()->TraceConnectWithoutContext("ReceivedInterests", MakeCallback(&SinkIst));
>>> It compiles successfully, but run failed and give me
>>> "Command ['/Users/shock/ndnSIM/ns-3/build/shock/xiaoke'] terminated with signal SIGSEGV. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>")."
>>> Anyone can help?
>>> My Regards,
>>> Xiaoke Jiang （蒋小可）
>>> Ph.D Candidate,
>>> Dept. of Computer Science and Technology,
>>> Tsinghua University, P. R. China
>>> ndnSIM mailing list
>>> ndnSIM at lists.cs.ucla.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM