<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 Igor,</div><div><br></div><div>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.</div><div><br></div><div>If you want, you can check out an example that I put up here:</div><div><br></div><div><a href="https://github.com/cawka/ndnSIM-examples/blob/master/extensions/custom-strategies/pre-process-incoming-packets.h">https://github.com/cawka/ndnSIM-examples/blob/master/extensions/custom-strategies/pre-process-incoming-packets.h</a></div><div><a href="https://github.com/cawka/ndnSIM-examples/blob/master/extensions/custom-strategies/pre-process-incoming-packets.cc">https://github.com/cawka/ndnSIM-examples/blob/master/extensions/custom-strategies/pre-process-incoming-packets.cc</a></div><div><br></div><div>and scenario that uses this new "strategy":</div><div><a href="https://github.com/cawka/ndnSIM-examples/blob/master/scenarios/ndn-simple-with-packet-preprocessing.cc">https://github.com/cawka/ndnSIM-examples/blob/master/scenarios/ndn-simple-with-packet-preprocessing.cc</a></div><div><br></div><div>(You can simply clone <a href="https://github.com/cawka/ndnSIM-examples">https://github.com/cawka/ndnSIM-examples</a> repo and try it out).</div><div><br></div><div>Let us know if your problem still exists or solved.</div><div><br></div><div>Thanks,</div><div>Alex</div><div><br></div><br><div><div>On Mar 11, 2013, at 8:01 PM, Igor <<a href="mailto:igorcompuff@gmail.com">igorcompuff@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi Alex,<br><br>I would like to implement a packet verification before the actions in the method <b>ForwardingStrategy::OnData(...)</b>
 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:<br>
<br><b>"./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>)"</b><br>


<br>I could implement my code on the ForwardingStrategy class directly, but I am not sure if this is the best way.<br><br>Could you helpe me?<br><br>Best Regards,<br><br>Igor Ribeiro
_______________________________________________<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>