<div dir="ltr"><div dir="ltr">Hi Zhongxiang<div><br></div><div>As I understand, your question is: in an application, you want to tag a packet with a value that is related to an attribute of a WifiNetDevice.</div><div>In ns-3, this can be achieved with:</div><div><ol><li>Get hold of Ptr<Node>, by looking up NodeList with current execution context ID.</li><li>Enumerate NetDevices attached to the Node.</li><li>Find the WiFiNetDevice, and read its attribute.</li><li>Tag the packet.</li></ol></div><div><br></div><div>Yours, Junxiao</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 23, 2019 at 7:55 PM Zhongxiang Zhu via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim@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"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi all,<div><br></div><div>I'm working on a wifi scenario where I have a new tag field attached and tested that works fine.</div><div>Now I would like to set the tag value to producer node's wifiNetDevices attributes from Producer::onInterest( ) but can't achieve it. Could you please suggest how can tag access wifiNetDevices attributes from inside Producer/Consumer.</div><div><br></div><div>I have read relevant tag posts but couldn't find what I'm looking for. Appreciate your help!</div><div><br></div><div>Best Regards</div><div>Fisher </div><div><br></div></div></div></div>
</blockquote></div></div>