<div dir="ltr">

<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Thank you Mr. Afanasyev,<br><br>write a tool that requests General Status Dataset from NFD<span> </span></span>

<br><br>- This is exactly something I am looking for.<div><br></div><div>I tried following<br>mini-ndn >> a ndnping /localhost/nfd/status/general<br><br>Following is the log. The question is, I am new to this tlv mapping concept. I read the link mentioned, but I am not able to understand how the mapping is done,</div><div>Assume, I just want to get CS entries from response below? How do I do that? or Please redirect me to reference/documentation. Sorry, may be this is a rookie question.<br><div><br></div><div><div>1518402552.534222 DEBUG: [Forwarder] FWD onIncomingInterest face=277 interest=/localhost/nfd/status/general/ping/3148021819785972518</div><div>1518402552.534329 DEBUG: [Forwarder] FWD onContentStoreMiss interest=/localhost/nfd/status/general/ping/3148021819785972518<br></div><div>1518402552.534358 DEBUG: [Forwarder] FWD onOutgoingInterest face=1 interest=/localhost/nfd/status/general/ping/3148021819785972518</div><div>1518402552.535748 DEBUG: [Forwarder] FWD onIncomingData face=1 data=/localhost/nfd/status/general/ping/3148021819785972518/%FD%00%00%01a%87%D8B%D6/%00%00</div></div><div><br>Thank you again.</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 11, 2018 at 8:46 PM, Alex Afanasyev <span dir="ltr"><<a href="mailto:aa@cs.fiu.edu" target="_blank">aa@cs.fiu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><br><div><span class=""><br><blockquote type="cite"><div>On Feb 11, 2018, at 8:04 PM, Aman Maldar <<a href="mailto:amanmaldar@gmail.com" target="_blank">amanmaldar@gmail.com</a>> wrote:</div><br class="m_5226803662783677139Apple-interchange-newline"><div><div dir="ltr"><div>Hello,</div><div><br></div><div>I want reuse some results of "a nfdc status show" command.</div><div><br></div><div>I undestand, the above command executes the code to calculate number of entries in FIB, CS, PIT.</div></div></div></blockquote><div><br></div></span><div>nfdc doesn't calculate anything, rather just requesting stats from NFD and then reporting it to you.</div><span class=""><br><blockquote type="cite"><div><div dir="ltr"><div><br></div><div>The file which call the command above is present in "/mini-ndn/NFD/nfdc/tools/<wbr>main.cpp" (I hope this is correct, or guide me to correct one please)</div><div><br></div><div>However, I am trying to dig deep into this to find out which is the <b>single function</b> that I can reuse  to calculate CS entries only or FIB entries only or PIT entries only.</div></div></div></blockquote><div><br></div></span><div>Depending on how much time you want to spend on this, you could either use some unix pipe'ing to extract the line/number you need or write a tool that requests General Status Dataset from NFD (<a href="https://redmine.named-data.net/projects/nfd/wiki/ForwarderStatus" target="_blank">https://redmine.named-data.<wbr>net/projects/nfd/wiki/<wbr>ForwarderStatus</a>) and prints the number you are looking for.</div><span class=""><div><br></div><blockquote type="cite"><div><div dir="ltr"><div><br></div><div>Can someone guide me on how to get the desired functions so that I can reuse it?</div></div></div></blockquote><div><br></div></span><div>Things are made modular, so actual code is "a bit" burried.  You can take a look here <a href="https://github.com/named-data/NFD/blob/master/tools/nfdc/forwarder-general-module.cpp" target="_blank">https://github.com/named-<wbr>data/NFD/blob/master/tools/<wbr>nfdc/forwarder-general-module.<wbr>cpp</a></div><div><br></div><blockquote type="cite"><div><span class=""><div dir="ltr"><div><br></div><div>Thank you in advance.</div><div><br></div>-- <br><div class="m_5226803662783677139gmail_signature"><div dir="ltr"><div><div dir="ltr"><b><font size="2">Regards,</font></b><font size="2"><b><i><br></i><font size="4"><span style="color:rgb(0,102,0)"><span style="background-color:rgb(255,255,255)">M<span></span>r. Maldar Aman M.</span></span></font></b></font><font size="4"><b><span style="color:rgb(0,102,0)"><span style="background-color:rgb(255,255,255)"><span></span><span></span></span></span></b></font><br><b>University of Massachusetts, Lowell</b><br></div></div></div></div>
</div></span>
______________________________<wbr>_________________<br>Nfd-dev mailing list<br><a href="mailto:Nfd-dev@lists.cs.ucla.edu" target="_blank">Nfd-dev@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev" target="_blank">http://www.lists.cs.ucla.edu/<wbr>mailman/listinfo/nfd-dev</a><br></div></blockquote></div><br><div>
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word;line-break:after-white-space"><div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word;line-break:after-white-space"><div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word;line-break:after-white-space">______________<span class="HOEnZb"><font color="#888888"><br>Alex Afanasyev<br>Assistant Professor, SCIS, Florida International University<br>11200 SW 8th Street, ECS Room 261B, Miami, FL 33199<br>phone: <a href="tel:(305)%20348-4960" value="+13053484960" target="_blank">+1.305.348.4960</a> (office); <a href="mailto:aa@cs.fiu.edu" target="_blank">email: aa@cs.fiu.edu</a><br>web: <a href="https://users.cs.fiu.edu/~afanasyev/" target="_blank">https://users.cs.fiu.edu/~<wbr>afanasyev/</a><br><br></font></span></div></div></div>
</div>
<br></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><b><font size="2">Regards,</font></b><font size="2"><b><i><br></i><font size="4"><span style="color:rgb(0,102,0)"><span style="background-color:rgb(255,255,255)">M<span></span>r. Maldar Aman M.</span></span></font></b></font><font size="4"><b><span style="color:rgb(0,102,0)"><span style="background-color:rgb(255,255,255)"><span></span><span></span></span></span></b></font><br><b>University of Massachusetts, Lowell</b><br></div></div></div></div>
</div>