From mboxrd@z Thu Jan 1 00:00:00 1970 From: yisupeng@gmail.com (Yisu Peng) Date: Wed, 30 Nov 2016 04:45:55 -0500 Subject: Fwd: Question about arp caches In-Reply-To: References: <7415a6e5-260f-9593-a41c-8622c640207e@gmail.com> Message-ID: <7f9b9530-167d-0fff-fd81-258fb7ccbdde@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Oh, I see. Thanks. Appreciate that. On 11/30/2016 3:42 AM, Anupam Kapoor wrote: > > On Wed, Nov 30, 2016 at 1:46 PM, Yisu Peng > wrote: > > So, how is the kernel check those staled arp entries? Or, what is > the mechanism that the kernel uses to find the out of date entries? > > > ?ok sure, well, each neighbor entry (struct neighbour) has a 'timer' > (which is created during neighbor creation i.e. > during neigh_alloc(...)). this timer gets 'serviced' by > '?neigh_timer_handler(...)', which is the per neighbor garbage > collector handler. > > when the state of the neighbor becomes NUD_FAILED, the neighbor is > collected via invokation of 'neigh_release(...)' as indicated earlier. > > ?-- > 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/20161130/980d4382/attachment.html