Re: Question about arp caches

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Tue, Nov 29, 2016 at 10:40 AM, Shawn Peng <yisupeng@xxxxxxxxx> 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.
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux