[ndnSIM] Question about updating name prefix list of the routers

Junxiao Shi shijunxiao at email.arizona.edu
Thu Mar 23 08:52:51 PDT 2017


Hi Sabet

Yes, the Interest is now signed.
Run the scenario within GDB, and type bt full upon crash, so that you can see where the crash happens.

Yours, Junxiao

> On Mar 22, 2017, at 1:01 PM, Muhammad Hosain Abdollahi Sabet <mhasabet at gmail.com> wrote:
> 
> 
> I did as you said:
> 
>     auto advertiseCommand = make_shared<Interest>();
>     Name command = Name("/localhost/nlsr/prefix-update/advertise");
>     ndn::nfd::ControlParameters parameters;
>     parameters.setName(Name("/updated-prefix"));
>     advertiseCommand->setName(command.append(parameters.wireEncode()));
>     m_keyChain.sign(*advertiseCommand);
>     m_transmittedInterests(advertiseCommand,this,m_face);
>     m_appLink->onReceiveInterest(*advertiseCommand);
> 
> And you can see that the interest is signed:
> 
> 6s 2 nfd.Forwarder:onIncomingInterest(): [DEBUG] onIncomingInterest face=261 interest=/localhost/nlsr/prefix-update/advertise/h%12%07%10%08%0Eupdated-prefix/%17p/n%29%05B%EE%F41g/%164%1B%01%01%1C%2F%07-%08%0Ctmp-identity%08%04Z%21%0A%16%08%03KEY%08%09ksk-16106%08%07ID-CERT/%17%FD%01%00%A0%9A%8CS%7CQU%24%E9%A7%5B%AE%84%5B%C0%9D%19W%5B%F6%FA%15%BC%8B%F8%FD%D4B%F7%F4%A7%03%C5SDY%A1%98%B3%A9%17%7B%DDE%D1JF%5E%F1%0A%7BY%13qA%24HP%DEV%D4%F0%F6Qr%27y%EA-L%82%A1u%01%2A%F2%FB%16%B4%82%02%18%8D%B7Z%C4%22%7C%E8SU%98%E5%C1%CF%D2%1FE%21%D0A%FD%40%85%C3D%94D%B6%95%FA%10%1AS%19%1E13%7C6%BC%21%86%D7q%9A%CC%1D%C3%13d%90%C9%C3%14%AB%3D%BA%AA%E4%A3%3C%98U%CF%7F%BC.j%9B%0C0ui%40%CBnMa%B8%19%2FWR%06%90D%EF%92%EEM%F6%0Am%25%FF%95%97%CF%F6%84W+%FCA%3D%FB%8B%8A%CA-1%98%8A%5B%1F%14%D3%CB%25%16%B5%95%8AB%D66%13%B5%A8m%F5%8F%1E1o%ADx%0EX%D1LFrS%BF%81%B5%92m%A2%26%91%D71o%FA%CCA%AC%BB7%FFI%210%8DW%E5%F6ctO%2C%3A%CF
> 
> But then again:
> 
> terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<ndn::name::Component::Error> >'
>   what():  Name component does not have the requested marker or the value is not a nonNegativeInteger
> 
> I don't think it is a bug. I guess there is something I should've done but didn't and I'm looking for it. But if it is, I will post a complete report of the environment, steps to reproduce, expected/actual result and so on.
> 
> Thanks,
> Sabet​
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170323/1fd17d22/attachment-0001.html>


More information about the ndnSIM mailing list