<div>Hi Alex!</div><div>š</div><div>Thanks for your reply!</div><div>That's what <span lang="en"><span>I thought to do, but one thing was disturbing me.</span></span></div><div>I tried so this :</div><div>Ptr<NetDeviceFace> netDeviceFace = DynamicCast<NetDeviceFace> (inFace);<br />Ptr<NetDevice> nd = netDeviceFace->GetNetDevice ();</div><div>š</div><div>Then, I presume to use the function GetQueue() which is in PointToPointNetDevice class and not virtual function of base NetDevice object.</div><div>šSo I'm just confused how to get the p2p device after getting the NetDevice object...</div><div>š</div><div>Thanks,</div><div>Natalya</div><div>š</div><div>13.12.2012, 04:55, "Alex Afanasyev" <alexander.afanasyev@ucla.edu>:</div><blockquote type="cite"><p>Hi, Natalya!<br /><br />It is easy, but would take a couple of steps. <br /><br />First, you need to figure out what from which type of face you have received a packet (as it could be an application face, which doesn't have a queue). šThis could be done using DynamicCast call, like in <a href="https://github.com/NDN-Routing/ndnSIM/blob/master/model/ndn-l3-protocol.cc#L229">https://github.com/NDN-Routing/ndnSIM/blob/master/model/ndn-l3-protocol.cc#L229</a>.<br /><br />Second, you will need to get netdevice pointer from the NetDeviceFace using GetNetDevice method (<a href="http://ndnsim.net/doxygen/classns3_1_1ndn_1_1_net_device_face.html#ae5ee510df5ba24c4a1aa94343302bb46">http://ndnsim.net/doxygen/classns3_1_1ndn_1_1_net_device_face.html#ae5ee510df5ba24c4a1aa94343302bb46</a>).<br /><br />Finally, you can access queue and other NetDevice attributes in a standard NS-3 way.<br /><br />---<br />Alex<br /><br />On Dec 12, 2012, at 1:46 PM, Natalya Rozhnova <<a href="mailto:natalya.rozhnova@lip6.fr">natalya.rozhnova@lip6.fr</a>> wrote:</p><blockquote>šHi everyone,<br /><br />šI'm trying to access to the output queue from m_forwardingStrategy::OnInterest(...) and OnData(...) functions. I need to access to the output queue installed on the interface from where the router just received a packet.<br />šLike:<br />š+-----+<br />š| R šššš|->out<br />š| ššššššš|<br />š+-----+<-in<br /><br />šWhat I'm actually trying to do is : when the router receives an Interest (or Data) packet on the Interface "in", I'd like to access to the queue instaled on interface "out" and to put there some values.<br />šHow I could access to this queue correctly?<br /><br />šThanks in advance!<br />šBest,<br />šNatalya</blockquote><p>š</p></blockquote>