fib_hash.h
来自「一个基于linux的TCP/IP协议栈的实现」· C头文件 代码 · 共 41 行
H
41 行
/* fib_hash.h * linqianghe@163.com * 2006-11-07 */#ifndef INCLUDED_FIB_HASH_H#define INCLUDED_FIB_HASH_H#include <linux/rtnetlink.h>#include <net/ip_fib.h>struct fib_node { struct hlist_node fn_hash; struct list_head fn_alias; u32 fn_key;};struct fn_zone { struct fn_zone *fz_next; struct hlist_head *fz_hash; int fz_nent; int fz_divisor; u32 fz_hashmask;#define FZ_HASHMASK(fz) ((fz)->fz_hashmask) int fz_order; u32 fz_mask;#define FZ_MASK(fz) ((fz)->fz_mask)};struct fn_hash { struct fn_zone *fn_zones[33]; struct fn_zone *fn_zone_list;};struct fib_table * myfib_hash_init(int id);void __exit myfib_hash_exit(void);void __exit myfn_zone_free( struct fn_zone* zone );void dump_fib_node( struct fib_table *tb );#endif //INCLUDED_FIB_HASH_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?