<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Junxiao,</div><div>Thanks a lot for your answer.</div><div>Now I'm having a new problem that will I be able to access the previous replied Data from inside Consumer::SendPacket() before sending out a new Interest?</div><div>As I have a tag (with value1) attached to the Data packet, here I'm trying to extract this tag value1 of replied Data then attach a new tag to the subsequent Interest with a value2 which is calculated based on the value1.</div><div>Thanks in advance.</div><div><br></div><div>Best Wishes</div><div>Zhongxiang</div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 31 Jul 2019 at 20:00, <<a href="mailto:ndnsim-request@lists.cs.ucla.edu">ndnsim-request@lists.cs.ucla.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send ndnSIM mailing list submissions to<br>
        <a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank">ndnsim@lists.cs.ucla.edu</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<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>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:ndnsim-request@lists.cs.ucla.edu" target="_blank">ndnsim-request@lists.cs.ucla.edu</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:ndnsim-owner@lists.cs.ucla.edu" target="_blank">ndnsim-owner@lists.cs.ucla.edu</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of ndnSIM digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. Re: Set tag to wifi attributes (Junxiao Shi)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 31 Jul 2019 13:00:08 -0400<br>
From: Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu" target="_blank">shijunxiao@email.arizona.edu</a>><br>
To: Zhongxiang Zhu <<a href="mailto:zzxfisher@gmail.com" target="_blank">zzxfisher@gmail.com</a>><br>
Cc: ndnsim <<a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank">ndnsim@lists.cs.ucla.edu</a>><br>
Subject: Re: [ndnSIM] Set tag to wifi attributes<br>
Message-ID:<br>
        <<a href="mailto:CAOFH%2BOZY-va%2BKx-0PecWxE2ZuMvcC41ayC-BJaOpa320Y8EBbA@mail.gmail.com" target="_blank">CAOFH+OZY-va+Kx-0PecWxE2ZuMvcC41ayC-BJaOpa320Y8EBbA@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi Zhongxiang<br>
<br>
As I understand, your question is: in an application, you want to tag a<br>
packet with a value that is related to an attribute of a WifiNetDevice.<br>
In ns-3, this can be achieved with:<br>
<br>
   1. Get hold of Ptr<Node>, by looking up NodeList with current execution<br>
   context ID.<br>
   2. Enumerate NetDevices attached to the Node.<br>
   3. Find the WiFiNetDevice, and read its attribute.<br>
   4. Tag the packet.<br>
<br>
<br>
Yours, Junxiao<br>
<br>
On Tue, Jul 23, 2019 at 7:55 PM Zhongxiang Zhu via ndnSIM <<br>
<a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank">ndnsim@lists.cs.ucla.edu</a>> wrote:<br>
<br>
> Hi all,<br>
><br>
> I'm working on a wifi scenario where I have a new tag field attached and<br>
> tested that works fine.<br>
> Now I would like to set the tag value to producer node's wifiNetDevices<br>
> attributes from Producer::onInterest( ) but can't achieve it. Could you<br>
> please suggest how can tag access wifiNetDevices attributes from inside<br>
> Producer/Consumer.<br>
><br>
> I have read relevant tag posts but couldn't find what I'm looking for.<br>
> Appreciate your help!<br>
><br>
> Best Regards<br>
> Fisher<br>
><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20190731/93fdbd9f/attachment-0001.html" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20190731/93fdbd9f/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<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>
<br>
<br>
------------------------------<br>
<br>
End of ndnSIM Digest, Vol 80, Issue 26<br>
**************************************<br>
</blockquote></div>