Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/in_fib.h
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | struct nhop4_extended { | ||||
uint16_t nh_mtu; /* nexthop mtu */ | uint16_t nh_mtu; /* nexthop mtu */ | ||||
uint16_t nh_flags; /* nhop flags */ | uint16_t nh_flags; /* nhop flags */ | ||||
uint8_t spare[4]; | uint8_t spare[4]; | ||||
struct in_addr nh_addr; /* GW/DST IPv4 address */ | struct in_addr nh_addr; /* GW/DST IPv4 address */ | ||||
struct in_addr nh_src; /* default source IPv4 address */ | struct in_addr nh_src; /* default source IPv4 address */ | ||||
uint64_t spare2[2]; | uint64_t spare2[2]; | ||||
}; | }; | ||||
/* Used to retrieve additional info from nhop_prepend */ | |||||
struct nhop4_helper { | |||||
struct in_addr nh_src; /* default source IPv4 address */ | |||||
}; | |||||
struct nhop_prepend; | |||||
int fib4_lookup_nh_basic(uint32_t fibnum, struct in_addr dst, uint32_t flags, | int fib4_lookup_nh_basic(uint32_t fibnum, struct in_addr dst, uint32_t flags, | ||||
uint32_t flowid, struct nhop4_basic *pnh4); | uint32_t flowid, struct nhop4_basic *pnh4); | ||||
int fib4_lookup_nh_ext(uint32_t fibnum, struct in_addr dst, uint32_t flags, | int fib4_lookup_nh_ext(uint32_t fibnum, struct in_addr dst, uint32_t flags, | ||||
uint32_t flowid, struct nhop4_extended *pnh4); | uint32_t flowid, struct nhop4_extended *pnh4); | ||||
void fib4_free_nh_ext(uint32_t fibnum, struct nhop4_extended *pnh4); | void fib4_free_nh_ext(uint32_t fibnum, struct nhop4_extended *pnh4); | ||||
int fib4_lookup_prepend(uint32_t fibnum, struct in_addr dst, uint32_t flags, | |||||
uint32_t flowid, struct route *ro, struct nhop4_helper *hh); | |||||
void fib4_free_prepend(struct nhop_prepend *pnh); | |||||
#endif | #endif | ||||