<div>Hi,</div><div>I think I'm just getting to the good bit about my doubt before this<span style="color: rgb(65, 109, 150);">.</span></div><div><font color="#416d96">(1) </font><span style="color: rgb(65, 109, 150);">If you want to run the simulation  outside the </span><span style="color: rgb(65, 109, 150);">directory of</span><span style="color: rgb(65, 109, 150);"> ns-3 installed£¬the c</span><font color="#416d96">ommand "sudo ./waf install" need be executed after </font><span style="color: rgb(65, 109, 150);">Command</span><span style="color: rgb(65, 109, 150);">"./waf" £¬I forgot it.</span></div><div><font color="#416d96">(2)Modifying the pit directly is </font><span style="color: rgb(65, 109, 150);">feasible</span><font color="#416d96"> , but I know it is not recommended, is there other way to modify the pit/pitEntry  like to modify forward strategy?</font></div><div><br></div><div>Sincerely,</div><div>Guozhi Zhang</div><div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From: </b> "ndnsim-request";<ndnsim-request@lists.cs.ucla.edu>;</div><div><b>Date: </b> Mon, Oct 10, 2016 00:51 AM</div><div><b>To: </b> "ndnsim"<ndnsim@lists.cs.ucla.edu>; <wbr></div><div></div><div><b>Subject: </b> ndnSIM Digest, Vol 47, Issue 4</div></div><div><br></div>Send ndnSIM mailing list submissions to<br>       ndnsim@lists.cs.ucla.edu<br><br>To subscribe or unsubscribe via the World Wide Web, visit<br> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br>or, via email, send a message with subject or body 'help' to<br>    ndnsim-request@lists.cs.ucla.edu<br><br>You can reach the person managing the list at<br>     ndnsim-owner@lists.cs.ucla.edu<br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of ndnSIM digest..."<br><br><br>Today's Topics:<br><br>   1. Re: something wrong in the technical report (Alex Afanasyev)<br>   2. Some doubt  about PIT modify (=?gb18030?B?1cW5+tbO?=)<br>   3. ndnSIM compile/link error with libprotobuf.a. (saran nath)<br>   4. Re: ndnSIM compile/link error with libprotobuf.a. (saran nath)<br>   5. How to Distinguish ContentTypes and downcast to them<br>      (Muhammad Hosain Abdollahi Sabet)<br>   6. Re: How to Distinguish ContentTypes and downcast to them<br>      (Junxiao Shi)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Wed, 5 Oct 2016 11:18:40 -0700<br>From: Alex Afanasyev <aa@CS.UCLA.EDU><br>To: ??? <410330533@qq.com><br>Cc: ndnsim <ndnsim@lists.cs.ucla.edu><br>Subject: Re: [ndnSIM] something wrong in the technical report<br>Message-ID: <E4AF29EF-1FB3-4601-B6BE-97154FEEAC6D@cs.ucla.edu><br>Content-Type: text/plain; charset=utf-8<br><br>Oops.  Thanks for pointing this out!  We'll fix it.<br><br>---<br>Alex<br><br>> On Sep 29, 2016, at 6:39 PM, ??? <410330533@qq.com> wrote:<br>> <br>> Hello,<br>> After read the technical report, I realized something wrong as the following picture shows. Why is the cs::Probability:Fifo correspond to  LFU and cs::Probability:lfu correspond to Random?Does the table lost some information?<br>> <C7734451@259E287E.35C2ED57.jpg><br>> Sincerely,<br>> Prince<br><br><br><br>------------------------------<br><br>Message: 2<br>Date: Thu, 6 Oct 2016 12:18:12 +0800<br>From: "=?gb18030?B?1cW5+tbO?=" <zguozhi@foxmail.com><br>To: "=?gb18030?B?bmRuc2lt?=" <ndnsim@lists.cs.ucla.edu><br>Subject: [ndnSIM] Some doubt  about PIT modify<br>Message-ID: <tencent_00CBC5E711E77FF356B9864E@qq.com><br>Content-Type: text/plain; charset="gb18030"<br><br>Dear  All,<br>I want to simulation cache policy which need to modify PIT, however, I meet some  questions:<br>(1) I am not clear how to modify PIT, for examples, if I want to add some data struct to pit::Entry,  should I modify directly the source of ndn-pit-entry.cc/ndn-pit-entry.h?  Or  is there a another simple method, such as aggregating or others?<br>(2)I modify directly the source of PIT in src/nsnSIM/modules/pit/ndn-pit-entry.cc, and recompile successfully  the ns-3, and run successfully simulation  in ns-3 directory? such as "ns-3/scratch/first.cc",   but when I run my  simulation in custom directory following the PAGE: http://ndnsim.net/1.0/getting-started.html,  there are some errors prompting"?class ns3::ndn::pit::Entry? has no member named ?AddInfaceCount?"  ,   ?AddInfaceCount? is the member function added into pit::Entry in source "src/nsnSIM/modules/pit/ndn-pit-entry.cc".  I so strange to this question, since before this I always run simulaiton  in this directory except modifying PIT.<br><br><br>Please forgive me for my poor English?<br><br><br>Sincerely,<br>Guozhi zhang<br>Beijing Jiaotong University<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20161006/7238bb74/attachment-0001.html><br><br>------------------------------<br><br>Message: 3<br>Date: Sat, 8 Oct 2016 01:22:27 -0700<br>From: saran nath <sarannath39@gmail.com><br>To: ndnsim@lists.cs.ucla.edu<br>Subject: [ndnSIM] ndnSIM compile/link error with libprotobuf.a.<br>Message-ID:<br>   <CAG6erePY34iX+34Rd9Y0bhP21YuNKbTeC3yEzx9pmLoRHyyQhQ@mail.gmail.com><br>Content-Type: text/plain; charset="utf-8"<br><br>Hello,<br><br>I am new to this project. I have almost compiled everything but failing in<br>linking I think.<br><br>Linking build/libns3-dev-ndnSIM-debug.so<br><br>/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libprotobuf.a(common.o): relocation<br>R_X86_64_32S against `_ZTVN6google8protobuf7ClosureE' can not be used when<br>making a shared object; recompile with -fPIC<br><br>/usr/lib/x86_64-linux-gnu/libprotobuf.a: error adding symbols: Bad value<br><br>collect2: error: ld returned 1 exit status<br><br>Your suggestion to remove this error will help me.<br><br>Saran.<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20161008/b4676371/attachment-0001.html><br><br>------------------------------<br><br>Message: 4<br>Date: Sat, 8 Oct 2016 02:18:08 -0700<br>From: saran nath <sarannath39@gmail.com><br>To: ndnsim@lists.cs.ucla.edu<br>Subject: Re: [ndnSIM] ndnSIM compile/link error with libprotobuf.a.<br>Message-ID:<br>     <CAG6erePPKPw_4fMy7=cA0Hybu3rRoD7DvATujEf9_QVpHS_qWg@mail.gmail.com><br>Content-Type: text/plain; charset="utf-8"<br><br>/usr/lib/x86_64-linux-gnu/libprotobuf.a was a stale entry and after<br>cleaning it up, I am able to successfully compile/link. Thanks. Saran.<br><br>On Sat, Oct 8, 2016 at 1:22 AM, saran nath <sarannath39@gmail.com> wrote:<br><br>> Hello,<br>><br>> I am new to this project. I have almost compiled everything but failing in<br>> linking I think.<br>><br>> Linking build/libns3-dev-ndnSIM-debug.so<br>><br>> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/libprotobuf.a(common.o):<br>> relocation R_X86_64_32S against `_ZTVN6google8protobuf7ClosureE' can not<br>> be used when making a shared object; recompile with -fPIC<br>><br>> /usr/lib/x86_64-linux-gnu/libprotobuf.a: error adding symbols: Bad value<br>><br>> collect2: error: ld returned 1 exit status<br>><br>> Your suggestion to remove this error will help me.<br>><br>> Saran.<br>><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20161008/e728fbfd/attachment-0001.html><br><br>------------------------------<br><br>Message: 5<br>Date: Sun, 9 Oct 2016 18:06:15 +0330<br>From: Muhammad Hosain Abdollahi Sabet <mhasabet@gmail.com><br>To: ndnsim <ndnsim@lists.cs.ucla.edu><br>Subject: [ndnSIM] How to Distinguish ContentTypes and downcast to them<br>Message-ID:<br>      <CADQ0MFZ0_Rw0JnGqPD2Xk-Lyfoi8QFzxnHYOw3=LJvpQWU_uYg@mail.gmail.com><br>Content-Type: text/plain; charset="utf-8"<br><br>?Hello everyone,<br><br>My application recieves a Data packet. How can I downcast it to its Type? I<br>mean, for example downcast a data packet to Key or Link or Nack based on<br>getContentType of the packet. I know it is more of a c++ question, but<br>again I haven't been able to do it yet in ndnSIM.<br><br>Thanks,<br>Sabet<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20161009/2b142b94/attachment-0001.html><br><br>------------------------------<br><br>Message: 6<br>Date: Sun, 9 Oct 2016 09:50:24 -0700<br>From: Junxiao Shi <shijunxiao@email.arizona.edu><br>To: Muhammad Hosain Abdollahi Sabet <mhasabet@gmail.com><br>Cc: ndnsim <ndnsim@lists.cs.ucla.edu><br>Subject: Re: [ndnSIM] How to Distinguish ContentTypes and downcast to<br>       them<br>Message-ID:<br>     <CAOFH+OZDHWiCq0g2VR2XGSHgvQb9+R+X2Pqg2PPtSyboDv49Aw@mail.gmail.com><br>Content-Type: text/plain; charset="utf-8"<br><br>Hi Sabet<br><br>When a Data instance is created during packet decoding, the instance is of<br>Data type, not a subclass of Data. Thus, you cannot downcast it with<br>static_cast.<br><br>If it's determined that the Data is a Link, you may construct a new Link<br>instance and decode from the wire encoding:<br><br>ndn::Link link(data.wireEncode());<br><br><br>Similarly, you can:<br><br>ndn::security::v1::Certificate cert(data);<br><br>Certificate has a constructor from Data, which allows you to omit<br>wireEncode().<br><br>ContentType=NACK refers to producer generated Nack, which has no particular<br>structure. A producer generated Nack is just a regular Data.<br>This is completely unrelated to ndn::lp::Nack.<br><br>Yours, Junxiao<br><br>On Sun, Oct 9, 2016 at 7:36 AM, Muhammad Hosain Abdollahi Sabet <<br>mhasabet@gmail.com> wrote:<br><br>> ?Hello everyone,<br>><br>> My application recieves a Data packet. How can I downcast it to its Type?<br>> I mean, for example downcast a data packet to Key or Link or Nack based on<br>> getContentType of the packet. I know it is more of a c++ question, but<br>> again I haven't been able to do it yet in ndnSIM.<br>><br>> Thanks,<br>> Sabet<br>><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20161009/5816565a/attachment.html><br><br>------------------------------<br><br>Subject: Digest Footer<br><br>_______________________________________________<br>ndnSIM mailing list<br>ndnSIM@lists.cs.ucla.edu<br>http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br><br><br>------------------------------<br><br>End of ndnSIM Digest, Vol 47, Issue 4<br>*************************************<br><div><br></div><div></div></div>