<div dir="ltr"><div>Dear Junxiao,</div><div>Thank you so much.</div><div>Forwarder::setExpiryTimer with 0ms worked like a charm.</div><div><br></div><div>Thanking you again,</div><div>Prajjwal Singh<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 5, 2021 at 7:53 PM Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu">shijunxiao@email.arizona.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="auto">Hi Prajjwal</div><div dir="auto"><br></div><div dir="auto">You may use Strategy::setExpiryTimer or Forwarder::setExpiryTimer, passing zero as timer duration.</div><div dir="auto">Strategy::rejectPendingInterest is a shorthand of this operation.</div><div dir="auto">This would cause the PIT entry to be erased when the current packet finishes processing.</div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 5, 2021 at 10:15 Prajjwal Singh <<a href="mailto:csb17053@tezu.ac.in" target="_blank">csb17053@tezu.ac.in</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"><p style="text-align:center"><font style="color:rgb(255,0,0)"><strong>External Email</strong><br></font></p><div dir="ltr"><div>Hello everybody,</div><div>I am trying to remove a few Pit Entries from the PIT on some basis when a new interest packet arrives. <br></div><div><br></div><div>Please guide me which functions can I make use of to remove such entries.</div><div><br></div><div>Till now I have been doing the following:</div><div><br></div><div>I have added an extra data structure that keeps (Pit::Entry *) of pit entries.</div><div>Then I am tweaking forwarder.cpp::onIncomingInterest() function to delete entries.</div><div>I have tried to use the function m_pit.erase(pit_entry.get());</div><div>to delete entries. <br></div><div>But, at some point the simulation hangs when some other part of the code tries <br></div><div>to delete the entry(which i have already deleted by my added code) and gives me the error: <br></div><div>void nfd::pit::Pit::erase(nfd::pit::Entry*, bool): Assertion `nte != nullptr' failed.</div><div><br></div><div>Thanking you in advance,</div><div>Prajjwal Singh<br></div></div></blockquote></div></div>
</blockquote></div>