Fwd: Question about arp caches

Yisu Peng yisupeng at gmail.com
Wed Nov 30 04:45:55 EST 2016


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 <yisupeng at gmail.com 
> <mailto:yisupeng at gmail.com>> 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 


More information about the Kernelnewbies mailing list