Changeset View
Changeset View
Standalone View
Standalone View
sys/net/route/route_var.h
Show First 20 Lines • Show All 220 Lines • ▼ Show 20 Lines | struct rtentry *lookup_prefix(struct rib_head *rnh, | ||||
const struct rt_addrinfo *info, struct route_nhop_data *rnd); | const struct rt_addrinfo *info, struct route_nhop_data *rnd); | ||||
struct rtentry *lookup_prefix_rt(struct rib_head *rnh, const struct rtentry *rt, | struct rtentry *lookup_prefix_rt(struct rib_head *rnh, const struct rtentry *rt, | ||||
struct route_nhop_data *rnd); | struct route_nhop_data *rnd); | ||||
bool nhop_can_multipath(const struct nhop_object *nh); | bool nhop_can_multipath(const struct nhop_object *nh); | ||||
bool match_nhop_gw(const struct nhop_object *nh, const struct sockaddr *gw); | bool match_nhop_gw(const struct nhop_object *nh, const struct sockaddr *gw); | ||||
int check_info_match_nhop(const struct rt_addrinfo *info, | int check_info_match_nhop(const struct rt_addrinfo *info, | ||||
const struct rtentry *rt, const struct nhop_object *nh); | 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 40 Lines | |||||
struct weightened_nhop; | struct weightened_nhop; | ||||
/* mpath_ctl.c */ | /* mpath_ctl.c */ | ||||
int add_route_mpath(struct rib_head *rnh, struct rt_addrinfo *info, | int add_route_mpath(struct rib_head *rnh, struct rt_addrinfo *info, | ||||
struct rtentry *rt, struct route_nhop_data *rnd_add, | struct rtentry *rt, struct route_nhop_data *rnd_add, | ||||
struct route_nhop_data *rnd_orig, struct rib_cmd_info *rc); | struct route_nhop_data *rnd_orig, struct rib_cmd_info *rc); | ||||
int del_route_mpath(struct rib_head *rh, struct rt_addrinfo *info, | |||||
struct rtentry *rt, struct nhgrp_object *nhg, struct rib_cmd_info *rc); | |||||
/* nhgrp.c */ | /* nhgrp.c */ | ||||
int nhgrp_ctl_init(struct nh_control *ctl); | int nhgrp_ctl_init(struct nh_control *ctl); | ||||
void nhgrp_ctl_free(struct nh_control *ctl); | void nhgrp_ctl_free(struct nh_control *ctl); | ||||
void nhgrp_ctl_unlink_all(struct nh_control *ctl); | void nhgrp_ctl_unlink_all(struct nh_control *ctl); | ||||
/* nhgrp_ctl.c */ | /* nhgrp_ctl.c */ | ||||
int nhgrp_dump_sysctl(struct rib_head *rh, struct sysctl_req *w); | int nhgrp_dump_sysctl(struct rib_head *rh, struct sysctl_req *w); | ||||
int nhgrp_get_group(struct rib_head *rh, struct weightened_nhop *wn, | int nhgrp_get_group(struct rib_head *rh, struct weightened_nhop *wn, | ||||
int num_nhops, struct nhgrp_object **pnhg); | int num_nhops, struct nhgrp_object **pnhg); | ||||
typedef bool nhgrp_filter_cb_t(const struct nhop_object *nh, void *data); | int nhgrp_get_filtered_group(struct rib_head *rh, const struct rtentry *rt, | ||||
int nhgrp_get_filtered_group(struct rib_head *rh, const struct nhgrp_object *src, | const struct nhgrp_object *src, rib_filter_f_t flt_func, void *flt_data, | ||||
nhgrp_filter_cb_t flt_func, void *flt_data, struct route_nhop_data *rnd); | struct route_nhop_data *rnd); | ||||
int nhgrp_get_addition_group(struct rib_head *rnh, | int nhgrp_get_addition_group(struct rib_head *rnh, | ||||
struct route_nhop_data *rnd_orig, struct route_nhop_data *rnd_add, | struct route_nhop_data *rnd_orig, struct route_nhop_data *rnd_add, | ||||
struct route_nhop_data *rnd_new); | struct route_nhop_data *rnd_new); | ||||
void nhgrp_ref_object(struct nhgrp_object *nhg); | void nhgrp_ref_object(struct nhgrp_object *nhg); | ||||
uint32_t nhgrp_get_idx(const struct nhgrp_object *nhg); | uint32_t nhgrp_get_idx(const struct nhgrp_object *nhg); | ||||
void nhgrp_free(struct nhgrp_object *nhg); | void nhgrp_free(struct nhgrp_object *nhg); | ||||
Show All 19 Lines |