深入解析Linux邻居子系统与IPv6协议
1. Linux邻居子系统
在Linux系统中,邻居子系统对于网络通信至关重要。其中, neigh_hold() 宏用于增加指定邻居的引用计数。
1.1 neigh_statistics结构
neigh_statistics 结构对于监控邻居子系统非常重要,ARP和NDISC都通过procfs(分别是 /proc/net/stat/arp_cache 和 /proc/net/stat/ndisc_cache )导出该结构的成员。以下是其成员的详细描述:
struct neigh_statistics {
unsigned long allocs; /* number of allocated neighs */
unsigned long destroys; /* number of destroyed neighs */
unsigned long hash_grows; /* number of hash resizes */
unsigned long res_failed; /* number of failed resolutions */
unsigned long lookups; /* number of lookups */
unsigned
超级会员免费看
订阅专栏 解锁全文
84

被折叠的 条评论
为什么被折叠?



