<div><div dir="auto">Hi Swetha</div><div dir="auto"><br></div><div dir="auto">This means your changes are breaking the NameTree API needed by FIB.</div><div dir="auto"><br></div><div dir="auto">1. Separately clone the NFD repository.</div><div dir="auto">2. Checkout the NFD version used in your version of ndnSIM.</div></div><div dir="auto">3. Apply your modifications there.</div><div dir="auto">4. Ensure all unit tests are passing. If not, find out what's wrong in your changes.</div><div dir="auto">5. Now reapply the changes to ndnSIM, and the FIB will likely work.</div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao</div><div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 5, 2020 at 00:01 Swetha B via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank">ndnsim@lists.cs.ucla.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p style="text-align:center"><font color="red"><strong>External Email</strong><br></font></p><div dir="ltr"><div dir="ltr">Hi all,<div>I am implementing NDN tables indexing using closed hashing with linear probing in ndnSIM2.7.</div><div>To achieve that I modified name-tree-hashtable.cpp and name-tree-iterator.cpp.</div><div>After modifications i am able to successfully run producer consumer applications.</div><div>In my custom scenario i am accessing FIB table of a node to insert a prefix and later execute consumer producer applications using that prefix. </div><div><br></div><div>auto& fib1 = node1->GetObject<ndn::L3Protocol>()->getForwarder()->getFib();<br>  auto e = fib1.insert(prefix).first;<br>  ndn::FibHelper::AddRoute(node1,prefix,node4,1);<br></div><div><br></div><div>When i execute this scenario i see that visualizer is'nt working and also the regular setup FIB tables on nodes is'nt taking place. I have shared a snapshot of execution.</div><div><br></div><div>swetha@swetha-Ubuntu:~/Desktop/ndnSIM/ndnSIM-sample-topologies$ NS_LOG="ndn-cxx.nfd.NameTreeHashtable:ndn.FibHelper:ndn.L3Protocol" ./waf --run=ndn-simple --vis<br>Waf: Entering directory `/home/swetha/Desktop/ndnSIM/ndnSIM-sample-topologies/build'<br>[23/34] cxx: scenarios/ndn-simple.cc -> build/scenarios/ndn-simple.cc.12.o<br>[34/34] cxxprogram: build/scenarios/ndn-simple.cc.12.o -> build/ndn-simple<br>Waf: Leaving directory `/home/swetha/Desktop/ndnSIM/ndnSIM-sample-topologies/build'<br>'build' finished successfully (6.937s)<br>+0.000000000s 0 ndn.L3Protocol:L3Protocol(0x555bd319c4e0)<br>+0.000000000s 0 ndn-cxx.nfd.NameTreeHashtable:computeThresholds(): [LOGIC] thresholds expand=512 shrink=102<br>+0.000000000s 0 ndn-cxx.nfd.NameTreeHashtable:findOrInsert(): [LOGIC] insert / hash=0 bucket=0<br>+0.000000000s 0 ndn-cxx.nfd.NameTreeHashtable:findOrInsert(): [LOGIC] insert /ndn hash=6181921638449679482 bucket=122<br>+0.000000000s 0 ndn-cxx.nfd.NameTreeHashtable:findOrInsert(): [LOGIC] insert /ndn/multicast hash=18240561258910134669 bucket=397<br>+0.000000000s 0 ndn-cxx.nfd.NameTreeHashtable:findOrInsert(): [LOGIC] insert /localhost hash=10937169108514740553 bucket=329<br>+0.000000000s 0 ndn-cxx.nfd.NameTreeHashtable:findOrInsert(): [LOGIC] insert /localhost/nfd hash=3626199823732152002 bucket=706<br><br>swetha@swetha-Ubuntu:~/Desktop/ndnSIM/ndnSIM-sample-topologies$ <br></div><div><br></div><div><br></div><div><br></div><div>  I m grateful for any thoughts and advice regarding where i am going wrong in this.</div><div>Thanks.</div><div><br></div><div>Swetha B.</div><div>Research Scholar</div><div>RNSIT</div><div>Bengaluru</div><div>India</div><div><br></div></div></div>
</blockquote></div></div>
</div>