Changeset View
Changeset View
Standalone View
Standalone View
sys/netlink/route/nhop.h
- This file was added.
#ifndef _NETLINK_ROUTE_NHOP_H_ | |||||
#define _NETLINK_ROUTE_NHOP_H_ | |||||
struct nhmsg { | |||||
unsigned char nh_family; | |||||
unsigned char nh_scope; /* return only */ | |||||
unsigned char nh_protocol; /* Routing protocol that installed nh */ | |||||
unsigned char resvd; | |||||
unsigned int nh_flags; /* RTNH_F flags */ | |||||
}; | |||||
/* entry in a nexthop group */ | |||||
struct nexthop_grp { | |||||
__u32 id; /* nexthop userland index */ | |||||
__u8 weight; /* weight of this nexthop */ | |||||
__u8 resvd1; | |||||
__u16 resvd2; | |||||
}; | |||||
enum { | |||||
NEXTHOP_GRP_TYPE_MPATH, /* default nexthop group */ | |||||
NEXTHOP_GRP_TYPE_RES, /* resilient nexthop group */ | |||||
__NEXTHOP_GRP_TYPE_MAX, | |||||
}; | |||||
#define NEXTHOP_GRP_TYPE_MAX (__NEXTHOP_GRP_TYPE_MAX - 1) | |||||
#endif | |||||
No newline at end of file |