[ndnSIM] [EXT] Can we access ns3 packet tags in forwarder.cc
zohanoor67 at gmail.com
Wed Jun 9 19:18:44 PDT 2021
Hi Junxiao Shi
Thank you for the response. I will try one of the above tricks and update
On Wed, Jun 9, 2021 at 5:36 PM Junxiao Shi <shijunxiao at email.arizona.edu>
> Hi Sonia
> This is impossible.
> ns3::Packet is lost when BlockHeader copies its content into ndn::Block
> A possible trick:
> 1. Make ndn::Block inherit from ndn::TagHost.
> 2. Define a ndn::Tag that contains ns3::PacketTagList.
> 3. Copy ns3 packet tags in BlockHeader when converting between ns3::Packet
> and ndn::Block.
> 4. Preserve ndn::Tag when converting between ndn::Block and
> Interest/Data/Nack in LinkService.
> If you attempt this idea, be sure to let us know whether it works.
> Yours, Junxiao
> On Wed, Jun 9, 2021, 02:06 Sonia via ndnSIM <ndnsim at lists.cs.ucla.edu>
>> *External Email*
>> Can we access ns3 packet in forwarder.cc?
>> Particularly, I want to access ns3 packet tag (snrtag). I have
>> attached this tag to the ns3 packet and can access it in
>> ndn-net-device-transport.cpp but I want to access it in Forwarder.cc too.
>> Any help would be highly appreciated.
>> Warm Regards
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM