Changeset View
Changeset View
Standalone View
Standalone View
head/sys/net/route/route_var.h
Show First 20 Lines • Show All 218 Lines • ▼ Show 20 Lines | |||||
/* route_ctl.c */ | /* route_ctl.c */ | ||||
struct route_nhop_data { | struct route_nhop_data { | ||||
struct nhop_object *rnd_nhop; | struct nhop_object *rnd_nhop; | ||||
uint32_t rnd_weight; | uint32_t rnd_weight; | ||||
}; | }; | ||||
int change_route_conditional(struct rib_head *rnh, struct rtentry *rt, | int change_route_conditional(struct rib_head *rnh, struct rtentry *rt, | ||||
struct rt_addrinfo *info, struct route_nhop_data *nhd_orig, | struct rt_addrinfo *info, struct route_nhop_data *nhd_orig, | ||||
struct route_nhop_data *nhd_new, struct rib_cmd_info *rc); | struct route_nhop_data *nhd_new, struct rib_cmd_info *rc); | ||||
struct rtentry *lookup_prefix(struct rib_head *rnh, | |||||
const struct rt_addrinfo *info, struct route_nhop_data *rnd); | |||||
int check_info_match_nhop(const struct rt_addrinfo *info, | |||||
const struct rtentry *rt, const struct nhop_object *nh); | |||||
int can_override_nhop(const struct rt_addrinfo *info, | |||||
const struct nhop_object *nh); | |||||
void vnet_rtzone_init(void); | void vnet_rtzone_init(void); | ||||
void vnet_rtzone_destroy(void); | void vnet_rtzone_destroy(void); | ||||
/* subscriptions */ | /* subscriptions */ | ||||
void rib_init_subscriptions(struct rib_head *rnh); | void rib_init_subscriptions(struct rib_head *rnh); | ||||
void rib_destroy_subscriptions(struct rib_head *rnh); | void rib_destroy_subscriptions(struct rib_head *rnh); | ||||
Show All 12 Lines | |||||
int nhop_create_from_info(struct rib_head *rnh, struct rt_addrinfo *info, | int nhop_create_from_info(struct rib_head *rnh, struct rt_addrinfo *info, | ||||
struct nhop_object **nh_ret); | struct nhop_object **nh_ret); | ||||
int nhop_create_from_nhop(struct rib_head *rnh, const struct nhop_object *nh_orig, | int nhop_create_from_nhop(struct rib_head *rnh, const struct nhop_object *nh_orig, | ||||
struct rt_addrinfo *info, struct nhop_object **pnh_priv); | struct rt_addrinfo *info, struct nhop_object **pnh_priv); | ||||
void nhops_update_ifmtu(struct rib_head *rh, struct ifnet *ifp, uint32_t mtu); | void nhops_update_ifmtu(struct rib_head *rh, struct ifnet *ifp, uint32_t mtu); | ||||
int nhops_dump_sysctl(struct rib_head *rh, struct sysctl_req *w); | int nhops_dump_sysctl(struct rib_head *rh, struct sysctl_req *w); | ||||
/* route */ | |||||
struct rtentry *rt_unlinkrte(struct rib_head *rnh, struct rt_addrinfo *info, | |||||
int *perror); | |||||
#endif | #endif |