[ndnSIM] How to deal with just arrived Data Packets in a custom way
alexander.afanasyev at ucla.edu
Mon Mar 11 21:14:20 PDT 2013
The way you started implementing is the recommended way to extend forwarding strategy behavior. You probably have some small linking problem. If you can show us a little bit more code, we can try to point out what can be wrong.
If you want, you can check out an example that I put up here:
and scenario that uses this new "strategy":
(You can simply clone https://github.com/cawka/ndnSIM-examples repo and try it out).
Let us know if your problem still exists or solved.
On Mar 11, 2013, at 8:01 PM, Igor <igorcompuff at gmail.com> wrote:
> Hi Alex,
> I would like to implement a packet verification before the actions in the method ForwardingStrategy::OnData(...) to be performed. I have tried to overwrite this method in a ForwardingStrategy derived class but I end up with a bunch of erros like this:
> "./libns3-dev-ndnSIM-debug.so: undefined reference to `ns3::ndn::fw::CustomFlooding::OnData(ns3::Ptr<ns3::ndn::Face>, ns3::Ptr<ns3::ndn::ContentObjectHeader const>, ns3::Ptr<ns3::Packet>, ns3::Ptr<ns3::Packet const>)"
> I could implement my code on the ForwardingStrategy class directly, but I am not sure if this is the best way.
> Could you helpe me?
> Best Regards,
> Igor Ribeiro _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM