[ndnSIM] Add a entry in RIB

Spyridon (Spyros) Mastorakis mastorakis at cs.ucla.edu
Tue Aug 15 15:36:48 PDT 2017


Hi,

please take a look at the NFD developer guide to understand how RIB works first:

https://named-data.net/wp-content/uploads/2016/10/ndn-0021-7-nfd-developer-guide.pdf

Then, I would suggest you use the registerRequest API of NFD to add the route you need:

https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.5.0-30-g934f505-ndnSIM/rib/rib-manager.cpp#L176

The best place to do that I think is in the initializeRibManager method:

https://github.com/named-data-ndnSIM/ndnSIM/blob/5ea3322623a0550799431f25b2fc4e7e4df5c046/model/ndn-l3-protocol.cpp#L326

Thanks,

Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
Internet Research Laboratory
Computer Science Department
UCLA

> On Aug 15, 2017, at 2:23 PM, Mateus Sousa <mateus.aluufc at gmail.com> wrote:
> 
> Hi dears, 
> 
> I'm facing a problem with in my sims, to overcome it I need to add an entry in RIB ("/hello/myID"). Can someone tell me how to do this?
> 
> Thanks in advance.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170815/2b4d2499/attachment.html>


More information about the ndnSIM mailing list