摘要:
看下以前的文章首先说明一下 Routing与 Neighboring subsystem的关联 1、在路由过程中,需要寻找或创建 struct dst_entry (另一种形式是 struct rtable)。 dst_entry 通过neighbour 域与 struct neighbour 关联 阅读全文
posted @ 2022-03-07 18:48
codestacklinuxer
阅读(130)
评论(0)
推荐(0)
摘要:
fib_table_lookup 可以参考:https://blog.csdn.net/shichaog/article/details/44658205 1405 int fib_table_lookup(struct fib_table *tb, const struct flowi4 *flp 阅读全文
posted @ 2022-03-07 12:10
codestacklinuxer
阅读(53)
评论(0)
推荐(0)
摘要:
3.6版本以前的路由缓存 缓存无处不在。现代计算机系统中,Cache是CPU与内存间存在一种容量较小但速度很高的存储器,用来存放CPU刚使用过或最近使用的数据。路由缓存就是基于这种思想的软件实现。内核查询FIB前,固定先查询cache中的记录,如果cache命中(hit),那就直接用就好了,不必查询 阅读全文
posted @ 2022-03-07 10:59
codestacklinuxer
阅读(94)
评论(0)
推荐(0)
摘要:
/proc/net/stat/rt_cache /proc/net/rt_acct /proc/net/fib_triestat /proc/net/fib_trie ip route get xxxx(ip 地址) ip route list table (local main xxx) Scop 阅读全文
posted @ 2022-03-07 10:55
codestacklinuxer
阅读(120)
评论(0)
推荐(0)

浙公网安备 33010602011771号