[ndnSIM] Content Store problem

John Baugh jpbaugh at umich.edu
Thu Nov 24 10:45:53 PST 2016


I'm not clear on exactly what you're asking, but perhaps you could
implement your own Policy (as a subclass/derived class of nfd::cs::Policy)
-> https://ndnsim.net/2.1/doxygen/classnfd_1_1cs_1_1Policy.html

You could use one of the protected members (override them in your subclass)
to do the additional verification / authentication:

virtual void  doAfterInsert
<https://ndnsim.net/2.1/doxygen/classnfd_1_1cs_1_1Policy.html#a4dadb2826887309843ebb52747072958>
 (iterator
<https://ndnsim.net/2.1/doxygen/namespacenfd_1_1cs.html#a2061c463cd919dbb1fb62bd36d18c96e>
 i)=0
  invoked after a new entry is created in CS More...
<https://ndnsim.net/2.1/doxygen/classnfd_1_1cs_1_1Policy.html#a4dadb2826887309843ebb52747072958>

virtual void  doAfterRefresh
<https://ndnsim.net/2.1/doxygen/classnfd_1_1cs_1_1Policy.html#ac7c947c857abb4ad6a565b85e519a194>
 (iterator
<https://ndnsim.net/2.1/doxygen/namespacenfd_1_1cs.html#a2061c463cd919dbb1fb62bd36d18c96e>
 i)=0
  invoked after an existing entry is refreshed by same Data More...
<https://ndnsim.net/2.1/doxygen/classnfd_1_1cs_1_1Policy.html#ac7c947c857abb4ad6a565b85e519a194>

virtual void  doBeforeErase
<https://ndnsim.net/2.1/doxygen/classnfd_1_1cs_1_1Policy.html#ab43a284d708ac4bb40220e85f379a053>
 (iterator
<https://ndnsim.net/2.1/doxygen/namespacenfd_1_1cs.html#a2061c463cd919dbb1fb62bd36d18c96e>
 i)=0
  invoked before an entry is erased due to management command More...
<https://ndnsim.net/2.1/doxygen/classnfd_1_1cs_1_1Policy.html#ab43a284d708ac4bb40220e85f379a053>

virtual void  doBeforeUse
<https://ndnsim.net/2.1/doxygen/classnfd_1_1cs_1_1Policy.html#ab8224c56d8f3e3aa0b8fbb7129b2af69>
 (iterator
<https://ndnsim.net/2.1/doxygen/namespacenfd_1_1cs.html#a2061c463cd919dbb1fb62bd36d18c96e>
 i)=0
  invoked before an entry is used to match a lookup More...
<https://ndnsim.net/2.1/doxygen/classnfd_1_1cs_1_1Policy.html#ab8224c56d8f3e3aa0b8fbb7129b2af69>

Hope this helps.

John


On Thu, Nov 24, 2016 at 9:39 AM, 林冠佑 <gouanyoulin at gmail.com> wrote:

> Hi everyone,
>
> I have a problem on ndn content store. I send a interest packet with a new
> field. The field has its own verified token.
> if there is the content in ndn cs, the cs will check the verified token.
> Consumer can get the content in the cs when he pass the check by router.
>
> I follow the lookup method of content-store-impl.hpp. But How can I add a
> new mechanism in this method to authenticate the token?
> May someone suggest me?   thx...
>
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20161124/a43ef379/attachment.html>


More information about the ndnSIM mailing list