<div dir="ltr"><div>Hi Xiaohui</div><div><br></div><div>Running NFD on OpenWrt router is same as running NFD on any other machine: you need the config file, among other <a href="https://named-data.net/doc/NFD/current/INSTALL.html#initial-configuration">initial configuration steps</a>.<br></div><div><br></div><div>But there must be an easier way!</div><div><ol><li> Install the <a href="https://github.com/yoursunny/OpenWrt-packages/tree/master/named-data/nfd-service">nfd-service</a> package.</li><li>Launch NFD with command: <span style="font-family:monospace">service nfd start<br></span>This will automatically create necessary certificates and generate nfd.conf from UCI config <span style="font-family:monospace">/etc/config/nfd</span></li><li>Format of UCI config is undocumented. It's not recommended to modify it directly, because some options are not working properly. Consider using the LuCI method below.<br></li></ol><div><br></div><div>If you have LuCI, you can even monitor and configure NFD on a graphical interface.</div><div>This feature was developed at <a href="https://github.com/9th-ndn-hackathon/NFD-LuCI">9th NDN hackathon</a>.<br></div><div><ol><li>Install <a href="https://github.com/yoursunny/OpenWrt-packages/tree/master/named-data/nfd-luci">nfd-luci</a> package.</li><li>In <i>Network - NFD</i> menu, you can configure NFD parameters including faces and FIB entries.</li><li>In <i>System - Startup</i> menu, you can start or stop NFD service.</li><li>In <i>Status - NDN</i> menu, you can monitor NFD status including global and face counters.</li></ol></div><div>Currently, modified NFD parameters in 
<i>Network - NFD</i> menu cannot reliably apply to running NFD instance. It's recommended to manually restart NFD service in  <i>System - Startup</i> menu after changing NFD parameters.<br></div><div><br></div><div>Yours, Junxiao<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 13, 2020 at 8:33 AM 郑小辉 <<a href="mailto:359267191@qq.com">359267191@qq.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hi Junxiao Shi</div><div><br></div><div>I have compiled all the ipk packages and installed NFD and NDN-CXX with opkg.</div><div>The following results appear when I enter "NFD" command in openwrt</div><div><div><br></div><div>NFD version 0.7.0 starting</div><div>Built with GNU C++ version 7.3.0, with GNU libstdc++ version 20180125, with Boost version 1.68.0, with libpcap version 1.9.1 (with TPACKET_V3), with WebSocket++  version 0.8.1, with ndn-cxx version 0.7.0</div><div>1578431353.576162 FATAL: [nfd.Main] ../daemon/common/config-file.cpp(88): Throw in function parse</div><div>Dynamic exception type: boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<nfd::ConfigFile::Error> >                                 </div><div>std::exception::what: Failed to read configuration file /etc/ndn/nfd.conf</div><div><br></div><div>I want to know how do I run NFD in openwrt.</div></div><div><div><p style="box-sizing:border-box;margin:0px;padding:0px;min-height:26px;line-height:26px;color:rgb(51,51,51);font-family:Arial,"Microsoft YaHei","\005fae\008f6f\0096c5\009ed1","\005b8b\004f53","Malgun Gothic",Meiryo,sans-serif;font-variant-numeric:normal;font-variant-east-asian:normal;text-align:justify;background-color:rgb(247,248,250)"><br></p><p>Tanks & Regards,</p><p style="box-sizing:border-box;margin:0px;padding:0px;min-height:26px;line-height:26px;color:rgb(51,51,51);font-family:Arial,"Microsoft YaHei","\005fae\008f6f\0096c5\009ed1","\005b8b\004f53","Malgun Gothic",Meiryo,sans-serif;font-variant-numeric:normal;font-variant-east-asian:normal;text-align:justify;background-color:rgb(247,248,250)">Xiaohui</p></div><div><br></div><div style="font-size:12px;font-family:Arial Narrow;padding:2px 0px">------------------ 原始邮件 ------------------</div><div style="font-size:12px;background:rgb(239,239,239) none repeat scroll 0% 0%;padding:8px"><div><b>发件人:</b> "Junxiao Shi"<<a href="mailto:shijunxiao@email.arizona.edu" target="_blank">shijunxiao@email.arizona.edu</a>>;</div><div><b>发送时间:</b> 2019年12月24日(星期二) 下午5:38</div><div><b>收件人:</b> "郑小辉"<<a href="mailto:359267191@qq.com" target="_blank">359267191@qq.com</a>>;</div><div><b>抄送:</b> "nfd-dev"<<a href="mailto:nfd-dev@lists.cs.ucla.edu" target="_blank">nfd-dev@lists.cs.ucla.edu</a>>;</div><div><b>主题:</b> Re: [Nfd-dev] Issue in running NDN using OpenWrt</div></div><div><br></div><div dir="auto"><div>Hi Xiaohui</div><div dir="auto"><br></div><div dir="auto">Look at the very first sentence of that page:</div><div dir="auto"><span style="color:rgb(51,51,51);font-family:verdana,sans-serif;font-size:14px;background-color:rgb(255,255,255)">Please build packages from </span><a href="https://github.com/yoursunny/OpenWrt-packages" style="color:rgb(17,102,153);text-decoration-line:none;font-family:verdana,sans-serif;font-size:14px;background-color:rgb(255,255,255)" target="_blank">https://github.com/yoursunny/OpenWrt-packages</a><span style="color:rgb(51,51,51);font-family:verdana,sans-serif;font-size:14px;background-color:rgb(255,255,255)"> feed.</span><br></div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao</div><div dir="auto"><br></div></div></div></blockquote></div></div>