Changeset View
Changeset View
Standalone View
Standalone View
sys/net/route/route_var.h
Show First 20 Lines • Show All 222 Lines • ▼ Show 20 Lines | struct rtentry *lookup_prefix_rt(struct rib_head *rnh, const struct rtentry *rt, | ||||
struct route_nhop_data *rnd); | struct route_nhop_data *rnd); | ||||
int rib_copy_route(struct rtentry *rt, const struct route_nhop_data *rnd_src, | int rib_copy_route(struct rtentry *rt, const struct route_nhop_data *rnd_src, | ||||
struct rib_head *rh_dst, struct rib_cmd_info *rc); | struct rib_head *rh_dst, struct rib_cmd_info *rc); | ||||
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); | ||||
bool rib_can_4o6_nhop(void); | |||||
/* route_rtentry.c */ | /* route_rtentry.c */ | ||||
void vnet_rtzone_init(void); | void vnet_rtzone_init(void); | ||||
void vnet_rtzone_destroy(void); | void vnet_rtzone_destroy(void); | ||||
void rt_free(struct rtentry *rt); | void rt_free(struct rtentry *rt); | ||||
void rt_free_immediate(struct rtentry *rt); | void rt_free_immediate(struct rtentry *rt); | ||||
struct rtentry *rt_alloc(struct rib_head *rnh, const struct sockaddr *dst, | struct rtentry *rt_alloc(struct rib_head *rnh, const struct sockaddr *dst, | ||||
struct sockaddr *netmask); | struct sockaddr *netmask); | ||||
Show All 11 Lines | |||||
void nhops_destroy_rib(struct rib_head *rh); | void nhops_destroy_rib(struct rib_head *rh); | ||||
void nhop_ref_object(struct nhop_object *nh); | void nhop_ref_object(struct nhop_object *nh); | ||||
int nhop_try_ref_object(struct nhop_object *nh); | int nhop_try_ref_object(struct nhop_object *nh); | ||||
void nhop_ref_any(struct nhop_object *nh); | void nhop_ref_any(struct nhop_object *nh); | ||||
void nhop_free_any(struct nhop_object *nh); | void nhop_free_any(struct nhop_object *nh); | ||||
struct nhop_object *nhop_get_nhop_internal(struct rib_head *rnh, | struct nhop_object *nhop_get_nhop_internal(struct rib_head *rnh, | ||||
struct nhop_object *nh, int *perror); | struct nhop_object *nh, int *perror); | ||||
bool nhop_check_gateway(int upper_family, int neigh_family); | |||||
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); | ||||
Show All 33 Lines | |||||
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 num_nhops, struct nhgrp_object **pnhg); | |||||
int nhgrp_get_filtered_group(struct rib_head *rh, const struct rtentry *rt, | int nhgrp_get_filtered_group(struct rib_head *rh, const struct rtentry *rt, | ||||
const struct nhgrp_object *src, rib_filter_f_t flt_func, void *flt_data, | const struct nhgrp_object *src, rib_filter_f_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); | ||||
Show All 22 Lines |