[ndnSIM] [EXT]Re: Getting incoming faceID
Sai Gautam Mandapati
saigautam96 at gmail.com
Mon Feb 20 16:16:23 PST 2023
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/fe93c30c/attachment.html>
More information about the ndnSIM
mailing list