|
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 */这是什么意思? |
|