<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000">Hi Junxiao,<br><br>Thank you for the explanation,<br><br>So NDN router which not instaled as consumer or producer, (only NDN stack helper for cs) cannot change the data name?<br><br>I'm just wondering how to store 5 recent removed data into secondary Content Store instead of the primary,<br>and the lookup process is still working for secondary cache.<br><br>I try to modify the cs-policy, but when lookup process for secondary cache, the iterator still refer to the primary cache which is already deleted when moved into the secondary cache,<br><br>That's why I wonder change the m_table for the specific iterator.<br><br>Best Regards,<br>Adi Paramartha<br><br><hr id="zwchr" data-marker=""><div data-marker=""><b>From: </b>"Junxiao Shi" <shijunxiao@email.arizona.edu><br><b>To: </b>mdparamartha95@students.itb.ac.id<br><b>Cc: </b>"ndnsim" <ndnsim@lists.cs.ucla.edu><br><b>Sent: </b>Friday, March 29, 2019 5:54:41 PM<br><b>Subject: </b>Re: [ndnSIM] How to Change Interest name in m_table on Cs.cpp NFD<br></div><br><div data-marker=""><div><div><div dir="auto">Hi Adi</div></div><div dir="auto"><br></div><div dir="auto">CS iterator name refers to Data name, not Interest name.</div><div dir="auto"><br></div><div dir="auto">One of the NDN design principles is Data Immutability. <div><a href="https://named-data.net/project/ndn-design-principles/" target="_blank">https://named-data.net/project/ndn-design-principles/</a></div></div><div dir="auto">Content Store or any other parts of the forwarder cannot change Data name or any other part of the Data.</div><div dir="auto"><br></div><div dir="auto">To change Data name, you have to do so at the producer.</div><div dir="auto">Make sire the Data still satisfies the Interest.</div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao</div></div><div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Mar 29, 2019 at 04:47 <<a href="mailto:mdparamartha95@students.itb.ac.id" target="_blank">mdparamartha95@students.itb.ac.id</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:#000000"><div>Hello everyone,<br></div><br><div>I'm would like to ask about how to change the interest name or prefix name of iterator in cs.cpp NFD.<br></div><br><div>I'm would like to change the content name in<em> it->getName()</em> when emitSignal executed..<br></div><br><div>I'm only want to change the content name, without changing any other metadata of the content.<br></div><br><div>I'm trying using setName() function from data.cpp, but it wont working. </div><br><div>Could someone help me or give some advice about how to change content name in m_table(iterator) in NFD cs.cpp  ?<br><br>Thank You<br></div><br><div>Best Regards,<br></div><div>Adi Paramartha<br></div></div></div>_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote></div></div>
</div><br></div></div></body></html>