Changeset View
Changeset View
Standalone View
Standalone View
sys/net/radix_mpath.c
Show First 20 Lines • Show All 204 Lines • ▼ Show 20 Lines | do { | ||||
/* all key/mask/gateway are the same. conflicting entry. */ | /* all key/mask/gateway are the same. conflicting entry. */ | ||||
return (EEXIST); | return (EEXIST); | ||||
} while ((rn1 = rn_mpath_next(rn1)) != NULL); | } while ((rn1 = rn_mpath_next(rn1)) != NULL); | ||||
return (0); | return (0); | ||||
} | } | ||||
static struct rtentry * | struct rtentry * | ||||
rt_mpath_selectrte(struct rtentry *rte, uint32_t hash) | rt_mpath_selectrte(struct rtentry *rte, uint32_t hash) | ||||
{ | { | ||||
struct radix_node *rn0, *rn; | struct radix_node *rn0, *rn; | ||||
uint32_t total_weight; | uint32_t total_weight; | ||||
struct rtentry *rt; | struct rtentry *rt; | ||||
int64_t weight; | int64_t weight; | ||||
/* beyond here, we use rn as the master copy */ | /* beyond here, we use rn as the master copy */ | ||||
▲ Show 20 Lines • Show All 106 Lines • Show Last 20 Lines |