<div dir="ltr"><div>Hello,</div><div>What is exactly the <span class="gmail-m_-7750413865306992944pl-en"><span class="gmail-m_-7750413865306992944pl-s">%FD%03 for?</span></span></div><div><span class="gmail-m_-7750413865306992944pl-en"><span class="gmail-m_-7750413865306992944pl-s">I copied the exact same code of best-route-strategy(both hpp and cpp) to another file named power-of-two-strategy<br></span></span></div><div><span class="gmail-m_-7750413865306992944pl-en"><span class="gmail-m_-7750413865306992944pl-s">and changed the best-route names in the code to <span class="gmail-m_-7750413865306992944pl-en"><span class="gmail-m_-7750413865306992944pl-s">power-of-two-strategy</span></span>.</span></span></div><div><span class="gmail-m_-7750413865306992944pl-en"><span class="gmail-m_-7750413865306992944pl-s"><br></span></span></div><div><span class="gmail-m_-7750413865306992944pl-en"><span class="gmail-m_-7750413865306992944pl-s">But when I want to use ./waf install I encounter the following error:</span></span></div><div><div><img src="cid:ii_jo1a00310" alt="image.png" width="482" height="255"></div><div><br></div><div>Best,</div><div>Sepehr<br></div><span class="gmail-m_-7750413865306992944pl-en"><span class="gmail-m_-7750413865306992944pl-s"></span></span></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Nov 1, 2018 at 7:08 PM Ashlesh Gawande (agawande) <<a href="mailto:agawande@memphis.edu">agawande@memphis.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div text="#000000" bgcolor="#FFFFFF">
<ul>
<li>Compile and install NFD again using waf under NFD folder. </li><li>Outside of Mini-NDN, run NFD and try setting the strategy on a name prefix:
<ul>
<li>nfdc strategy set /prefix strategy <strategy-name> </li></ul>
</li><li>The <strategy-name> is the one you set in <span class="m_-7750413865306992944pl-en">getStrategyName in your strategy.</span>
<ul>
<li><span class="m_-7750413865306992944pl-en">For example, ASF:</span><span class="m_-7750413865306992944pl-en"><span class="m_-7750413865306992944pl-s"> /localhost/nfd/strategy/asf/%FD%03</span></span>
</li><li><span class="m_-7750413865306992944pl-en"><span class="m_-7750413865306992944pl-s"><a class="m_-7750413865306992944moz-txt-link-freetext" href="https://github.com/named-data/NFD/blob/f48d0809f085b32670b4163328ce88c6cad0291d/daemon/fw/asf-strategy.cpp#L67" target="_blank">https://github.com/named-data/NFD/blob/f48d0809f085b32670b4163328ce88c6cad0291d/daemon/fw/asf-strategy.cpp#L67</a><br>
</span></span></li></ul>
</li><li>If the nfdc command is successful, in Mini-NDN you can call this function with appropriate parameters:<span class="m_-7750413865306992944pl-en"></span>
<ul>
<li><span class="m_-7750413865306992944pl-en"><a class="m_-7750413865306992944moz-txt-link-freetext" href="https://github.com/named-data/mini-ndn/blob/6f7a64fc75065191035141e3a8c33e149bef27f9/ndn/apps/nfdc.py#L66" target="_blank">https://github.com/named-data/mini-ndn/blob/6f7a64fc75065191035141e3a8c33e149bef27f9/ndn/apps/nfdc.py#L66</a><br>
</span></li></ul>
</li></ul>
<p>Ashlesh<br>
</p>
<div class="m_-7750413865306992944moz-cite-prefix">On 11/1/18 7:10 AM, sepehr abdous wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">
<div>Hello all,</div>
<div><br>
</div>
<div>I defined a custom strategy in the mini-ndn/NFD/daemon/fw/ directory.</div>
<div>How can I add my strategy to NFD so that I can use it by nfdc in my mini-ndn experiments?</div>
<div><br>
</div>
<div>Best,</div>
<div>Sepehr<br>
</div>
</div>
</div>
<br>
<fieldset class="m_-7750413865306992944mimeAttachmentHeader"></fieldset>
<pre class="m_-7750413865306992944moz-quote-pre">_______________________________________________
Mini-NDN mailing list
<a class="m_-7750413865306992944moz-txt-link-abbreviated" href="mailto:Mini-NDN@lists.cs.ucla.edu" target="_blank">Mini-NDN@lists.cs.ucla.edu</a>
<a class="m_-7750413865306992944moz-txt-link-freetext" href="http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn</a>
</pre>
</blockquote>
</div>

</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div><span style="color:rgb(0,0,255)">Sepehr Abdous<br></span></div><span style="color:rgb(0,0,255)">Faculty: <a href="mailto:abdous@ce.sharif.edu" target="_blank">abdous@ce.sharif.edu</a><br></span></div><div><span style="color:rgb(0,0,255)">Yahoo mail: <a href="mailto:sepehrabdous@yahoo.com" target="_blank">sepehrabdous@yahoo.com</a><br></span></div><div><span style="color:rgb(0,0,255)">Cellphone:+989129751873<br></span></div><div><span style="color:rgb(0,0,255)">School of computer engineering<br></span></div><div><span style="color:rgb(0,0,255)">Sharif University of Technology<br></span></div><div><span style="color:rgb(0,0,255)">Tehran, Iran</span><br></div></div></div></div></div>