<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">For Limits to be activated, you needs to use to forwarding strategy that uses them, e.g., ndn::fw::BestRoute::PerOutFaceLimits.</div><div class=""><br class=""></div><div class="">And just in case.  Limits class doesn't use anything from the transmission queues.  It needs to be manually configured with the parameters that make sense for the simulation scenario.</div><div class=""><br class=""></div><div class="">---</div><div class="">Alex</div><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 27, 2016, at 1:02 AM, Ayush Agarwal <<a href="mailto:ayush0071@gmail.com" class="">ayush0071@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Hi Alex,<br class=""></div>I am trying to change the interest limit/interest sending rate on a face. For this I am calling the functions inside the Limits class associated to a particular face. But I am unable to find any change in my simulation results. Can you guide me where I am going wrong.<br class=""><br class=""><b class="">Thanks & Regards,</b><br class=""><b style="font-size:12.8px" class="">Ayush Agarwal<br class=""></b><div style="font-size:12.8px" class=""><b class="">Reseach Scholar, Computer Science<br class=""></b></div><b style="font-size:12.8px" class="">National Institute of Technology, Karnataka<br class="">Surathkal, India</b><br class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Fri, Feb 26, 2016 at 4:16 PM, Ayush Agarwal <span dir="ltr" class=""><<a href="mailto:ayush0071@gmail.com" target="_blank" class="">ayush0071@gmail.com</a>></span> wrote:<br class=""><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><div dir="ltr" class=""><div class=""><div class=""><div class="">Hi,<br class=""></div>Thanks for your reply. Yes, I have solved the compilation errors. It was due to the NULL pointer that was not handled properly.<br class=""><br class=""></div>Thanks & Regards,<br class=""></div>Ayush<br class=""></div><div class=""><div class="h5"><div class="gmail_extra"><br class=""><div class="gmail_quote">On Fri, Feb 26, 2016 at 2:26 PM, Alex Afanasyev <span dir="ltr" class=""><<a href="mailto:aa@cs.ucla.edu" target="_blank" class="">aa@cs.ucla.edu</a>></span> wrote:<br class=""><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><span class=""><br class="">
> On Feb 18, 2016, at 8:42 AM, Ayush Agarwal <<a href="mailto:ayush0071@gmail.com" target="_blank" class="">ayush0071@gmail.com</a>> wrote:<br class="">
><br class="">
> Hello everyone,<br class="">
><br class="">
> I am using the following code to get hold of the queue object inside the forwarding strategy, OnData(....) function.<br class="">
><br class="">
> Ptr<NetDeviceFace> netDeviceFace = DynamicCast<NetDeviceFace> (inFace);<br class="">
> if (netDeviceFace == NULL) {  }<br class="">
> Ptr<NetDevice> nd = netDeviceFace->GetNetDevice ();<br class="">
> if (nd == NULL) {  }<br class="">
> PointerValue txQueueAttribute;<br class="">
> nd->GetAttribute ("TxQueue", txQueueAttribute);<br class="">
> Ptr<ns3::Queue> txQueue = txQueueAttribute.Get<ns3::Queue> ();<br class="">
> if (txQueue == 0) {    }<br class="">
><br class="">
> But I am getting a segmentation fault SIGSEV error while fetching the NetDevice object and the following errors for accessing queue.<br class="">
><br class="">
> ../src/ndnSIM/model/fw/<a href="http://ndn-forwarding-strategy.cc" class="">ndn-forwarding-strategy.cc</a>:238:3: error: ‘PointerValue’ was not declared in this scope<br class="">
>     PointerValue txQueueAttribute;<br class="">
>    ^<br class="">
> ../src/ndnSIM/model/fw/<a href="http://ndn-forwarding-strategy.cc" class="">ndn-forwarding-strategy.cc</a>:239:32: error: ‘txQueueAttribute’ was not declared in this scope<br class="">
>    nd->GetAttribute ("TxQueue", txQueueAttribute);<br class="">
>                                 ^<br class="">
> ../src/ndnSIM/model/fw/<a href="http://ndn-forwarding-strategy.cc" class="">ndn-forwarding-strategy.cc</a>:243:50: error: expected primary-expression before ‘>’ token<br class="">
>    Ptr<Queue> txQueue = txQueueAttribute.Get<Queue> ();<br class="">
>                                                   ^<br class="">
> ../src/ndnSIM/model/fw/<a href="http://ndn-forwarding-strategy.cc" class="">ndn-forwarding-strategy.cc</a>:243:53: error: expected primary-expression before ‘)’ token<br class="">
>    Ptr<Queue> txQueue = txQueueAttribute.Get<Queue> ();<br class="">
><br class="">
><br class="">
> Can you please point me out where I am going wrong.<br class="">
<br class="">
</span>Hi Ayush,<br class="">
<br class="">
Sorry for the delayed response.  I'm guessing that you have already solved the compilation problem?  Just in case, it is just a matter of adding proper includes (I think <ns3/pointer.h>, <ns3/queue.h>)<br class="">
<br class="">
---<br class="">
Alex<br class="">
<br class="">
</blockquote></div><br class=""></div>
</div></div></blockquote></div><br class=""></div></div>
</div></blockquote></div><br class=""></body></html>