Changeset View
Changeset View
Standalone View
Standalone View
sys/net/route/route_var.h
Show First 20 Lines • Show All 235 Lines • ▼ Show 20 Lines | |||||
void rib_destroy_subscriptions(struct rib_head *rnh); | void rib_destroy_subscriptions(struct rib_head *rnh); | ||||
/* Nexhops */ | /* Nexhops */ | ||||
void nhops_init(void); | void nhops_init(void); | ||||
int nhops_init_rib(struct rib_head *rh); | int nhops_init_rib(struct rib_head *rh); | ||||
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_free_any(struct nhop_object *nh); | |||||
void nhop_set_type(struct nhop_object *nh, enum nhop_type nh_type); | void nhop_set_type(struct nhop_object *nh, enum nhop_type nh_type); | ||||
void nhop_set_rtflags(struct nhop_object *nh, int rt_flags); | void nhop_set_rtflags(struct nhop_object *nh, int rt_flags); | ||||
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); | ||||
▲ Show 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | int nhgrp_get_group(struct rib_head *rh, struct weightened_nhop *wn, | ||||
int num_nhops, struct route_nhop_data *rnd); | int num_nhops, struct route_nhop_data *rnd); | ||||
typedef bool nhgrp_filter_cb_t(const struct nhop_object *nh, void *data); | typedef bool nhgrp_filter_cb_t(const struct nhop_object *nh, void *data); | ||||
int nhgrp_get_filtered_group(struct rib_head *rh, const struct nhgrp_object *src, | int nhgrp_get_filtered_group(struct rib_head *rh, const struct nhgrp_object *src, | ||||
nhgrp_filter_cb_t flt_func, void *flt_data, struct route_nhop_data *rnd); | nhgrp_filter_cb_t flt_func, void *flt_data, 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); | |||||
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); | ||||
/* Entropy data used for outbound hashing */ | /* Entropy data used for outbound hashing */ | ||||
#define MPATH_ENTROPY_KEY_LEN 40 | #define MPATH_ENTROPY_KEY_LEN 40 | ||||
extern uint8_t mpath_entropy_key[MPATH_ENTROPY_KEY_LEN]; | extern uint8_t mpath_entropy_key[MPATH_ENTROPY_KEY_LEN]; | ||||
#endif | #endif |