[ndnSIM] Having different behavior on different nodes

Alex Afanasyev aa at CS.UCLA.EDU
Wed May 25 11:27:44 PDT 2016

You will have to add some hack into the code.  You can include ns-3 headers and then use Simulator::GetContext() to know simulation node to which the forwarder belongs.  Using this one, you can a fork in the pipeline processing.


> On May 25, 2016, at 2:51 AM, Muhammad Hosain Abdollahi Sabet <mhasabet at gmail.com> wrote:
> Hi all,
> How can I define different forwarding pipelines for nodes? I mean for example some nodes check something additional, but others follow the normal(current) pipeline. Do we have a shorter way than extending another pipeline?
> Thanks,
> Sabet
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160525/204e12b0/attachment.bin>

More information about the ndnSIM mailing list