From mboxrd@z Thu Jan 1 00:00:00 1970 From: yisupeng@gmail.com (Shawn Peng) Date: Tue, 29 Nov 2016 02:19:19 -0500 Subject: Question about arp caches In-Reply-To: References: <7415a6e5-260f-9593-a41c-8622c640207e@gmail.com> Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org I find a lot references of the function neigh_release(), can you direct me to the one that releases a staled arp entry? Thanks. On 11/29/2016 12:50 AM, Anupam Kapoor wrote: > > On Tue, Nov 29, 2016 at 10:40 AM, Shawn Peng > wrote: > > I'm reading the code about arp protocol. It seems like the kernel uses > the neigh_table structure to keep track of caches, right? > > ?yes.? > > There should > be some code that remove the stale entries in the cache, but I didn't > find the code that does this job. Does anyone have an idea? > > ?look at neigh_release(...) and neigh_destroy(...). basically, > neigh_release(...) decrements the reference count of a neighbor, and > neigh_destroy(...) frees it when this reference count reaches zero.? > > > ?-- > kind regards > anupam? > > > In the beginning was the lambda, and the lambda was with Emacs, and > Emacs was the lambda. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20161129/e6dca7eb/attachment.html