/* Routing Table Entries: */
struct route {
IPaddr rt_net; /* network address for this route */
IPaddr rt_mask; /* mask for this route */
IPaddr rt_gw; /* next IP hop */
u_short rt_metric; /* distance metric */
u_short rt_ifnum; /* interface number */
short rt_key; /* sort key */
short rt_ttl; /* time to live (seconds) */
struct route *rt_next; /* next entry for this hash value */
/* stats */
int rt_refcnt; /* current reference count */
int rt_usecnt; /* total use count so far */
};
route
路由表结构解析
最新推荐文章于 2023-10-30 13:33:27 发布
本文深入解析了路由表的内部结构,详细介绍了路由表项中各项字段的含义,包括网络地址、子网掩码、下一跳地址、距离度量、接口编号、排序关键字、生存时间等。同时,还探讨了路由表的统计信息,如引用计数和使用次数。
6566

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



