Linux网络子系统与IPv6协议详解
1. Linux邻居子系统相关内容
在Linux系统中,邻居子系统有着重要的作用。 neigh_hold() 宏的作用是增加指定邻居的引用计数。而 neigh_statistics 结构体则对于监控邻居子系统至关重要,ARP和NDISC都会通过procfs(分别是 /proc/net/stat/arp_cache 和 /proc/net/stat/ndisc_cache )导出该结构体的成员。以下是 neigh_statistics 结构体的详细信息:
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 long hit
超级会员免费看
订阅专栏 解锁全文
1272

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



