[ndnSIM] [EXT]Re: Getting incoming faceID

Junxiao Shi shijunxiao at arizona.edu
Mon Feb 20 16:33:41 PST 2023


Hi Sai

What is `face` in the function parameters?
Is it meant to be the incoming face of the Data?
If so, you already have the information, and do not need to extract it from
the Data object.

Yours, Junxiao

On Mon, Feb 20, 2023, 19:16 Sai Gautam Mandapati <saigautam96 at gmail.com>
wrote:

> *External Email*
> Hi Junxiao,
>
> Thanks for your reply. I wanted to use it for developing a tracer under
> satisfied Interests. For example:
>
>
> void
> PitTracer::SatisfiedInterests(const nfd::pit::Entry& pitEntry, const Face&
> face, const Data& data)
> {
>   auto faceId = data.getIncomingFaceId();
>   //auto nodeName = face.GetId();
>   --m_pitSizes[faceId];
>
>   // Call the base class method
>   L3Tracer::SatisfiedInterests(pitEntry,face,data);
> }
>
> How can I use it here? Please help me.
>
> On Tue, Feb 21, 2023 at 11:10 AM Junxiao Shi <shijunxiao at arizona.edu>
> wrote:
>
>> Hi Sai
>>
>> In forwarder context, you should pass the FaceID as a parameter to each
>> function that uses it.
>> In application context, data.getTag<ndn::lp::IncomingFaceIdTag>().
>>
>> Yours, Junxiao
>>
>> On Mon, Feb 20, 2023, 18:49 Sai Gautam Mandapati <saigautam96 at gmail.com>
>> wrote:
>>
>>> *External Email*
>>>
>>> Hi everyone,
>>>
>>> I wanted to get incoming face ID of a data packet and I'm currently
>>> using ndnSIM 2.8. I know that const class ndn::Data has no member
>>> getIncomingFaceId() and has been removed. Can you please help me out how I
>>> can access it?
>>>
>>> Thanks,
>>> Sai Gautam
>>>
>>
>
> --
> Sai Gautam
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20230220/e29c21af/attachment.html>


More information about the ndnSIM mailing list