<div dir="auto">Hi Prajjwal<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>I want to set a size limit for PIT and also provide a replacement mechanism for the PIT entries.</div></div></blockquote></div><div dir="auto"><br></div><div dir="auto">This is part of congestion control. See <a href="https://redmine.named-data.net/issues/5060">https://redmine.named-data.net/issues/5060</a> and its attachments for some ideas.</div><div dir="auto"><br></div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>Please point out the correct way of doing the above.</div><div><br></div><div>PS:</div><div>Till now I have been reading the code in NFD/daemon/Table/Pit.cpp and trying to tweak the function: PIT::findOrInsert(const Interest& interest, bool allowInsert).</div><div>I have the following problems:</div><div>1) I am unable to understand in which scenario the bool allowInsert will be false.</div></div></blockquote></div><div dir="auto"><br></div><div dir="auto">Pit::findOrInsert is an implementation detail.</div><div dir="auto">It's called by:</div><div dir="auto">🔸 Pit::insert, used during Interest processing.</div><div dir="auto">🔸 Pit::find, used during Nack processing.</div><div dir="auto"><br></div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>2) When I try to tweak the above mentioned function to not insert the interest packets with a certain tag value, and return before processing further, I get SIGSEGV error.</div></div></blockquote></div><div dir="auto"><br></div><div dir="auto">GDB can tell you why it's crashing.</div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao</div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div>