LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 776|回复: 0

请教!struct fib_nh结构

[复制链接]
发表于 2007-3-5 10:14:10 | 显示全部楼层 |阅读模式
struct fib_nh {
        struct net_device        *nh_dev;
        struct hlist_node        nh_hash;
        struct fib_info                *nh_parent;
        unsigned                nh_flags;
        unsigned char                nh_scope;
#ifdef CONFIG_IP_ROUTE_MULTIPATH
        int                        nh_weight;
        int                        nh_power;
#endif
#ifdef CONFIG_NET_CLS_ROUTE
        __u32                        nh_tclassid;
#endif
        int                        nh_oif;
        u32                        nh_gw;
};

其中nh_flags;有什么作用,特别是RTNH_F_PERVASIVE
代码中的注释是
#define RTNH_F_PERVASIVE        2        /* Do recursive gateway lookup        */这是什么意思?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表