[Ndn-interest] List of registerPrefix

Thompson, Jeff jefft0 at remap.ucla.edu
Sun Feb 8 18:20:27 PST 2015

Hello Bassem,

I added an example to jNDN which sends an interest to /localhost/nfd/rib/list and prints the returned RibEntry message. Please pull the lastest from GitHub. Here is the file:

The content of the returned Data packet is a TLV RibEntry message. To decode it, the example uses the jNDN utility called ProtobufTlv.  This works with a .proto definition file:

Note that ProtobufTlv does not work with the Protobuf wire format. Instead, ProtobufTlv decodes the TLV and creates an in-memory Protobuf RibEntryMessage object that your code can examine to get the field values. The ProtobufTlv utility is very general. You can use it to encode and decode just about any TLV type, if you make the .proto file.

Let me know if you have any trouble running the example.

- Jeff T

From: Bassem Labib <bassem.labib at gmail.com<mailto:bassem.labib at gmail.com>>
Date: Saturday, February 7, 2015 at 11:03
To: Junxiao Shi <shijunxiao at email.arizona.edu<mailto:shijunxiao at email.arizona.edu>>
Cc: "ndn-interest at lists.cs.ucla.edu<mailto:ndn-interest at lists.cs.ucla.edu>" <ndn-interest at lists.cs.ucla.edu<mailto:ndn-interest at lists.cs.ucla.edu>>
Subject: Re: [Ndn-interest] List of registerPrefix

Hi Junxiao,

I don't know how to call `nfd-status -r` command using jNDN.
Actually, I tried to do so, thorough using the class Node.RegisteredPrefix and Node.RegisterResponse, but I failed.
So, I will be grateful if you provide any sample to get the required list of registerPrefix.

Bassem Labib

On Sat, Feb 7, 2015 at 8:30 PM, Junxiao Shi <shijunxiao at email.arizona.edu<mailto:shijunxiao at email.arizona.edu>> wrote:
Hi Bassem

Executing `nfd-status -r` on command line will display the RIB dataset.

Routes installed in the RIB can be accessed by requesting RIB dataset<http://redmine.named-data.net/projects/nfd/wiki/RibMgmt#RIB-Dataset>.
In jNDN, you can write a consumer program to request this dataset.

Yours, Junxiao

On Sat, Feb 7, 2015 at 11:25 AM, Bassem Labib <bassem.labib at gmail.com<mailto:bassem.labib at gmail.com>> wrote:
Hi All,

I am using jNDN client with NFD, does any one have a code that can read or list all the "registerPrefix" registered in the FIB or RIB.

Thanks in advance,
Bassem Labib

Ndn-interest mailing list
Ndn-interest at lists.cs.ucla.edu<mailto:Ndn-interest at lists.cs.ucla.edu>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20150209/f0d958fe/attachment.html>

More information about the Ndn-interest mailing list