Searched refs:nhg (Results 1 – 8 of 8) sorted by relevance
| /f-stack/freebsd/net/route/ |
| H A D | nhgrp_ctl.c | 219 dst = dst_priv->nhg; in compile_nhgrp() 259 struct nhgrp_object *nhg; in alloc_nhgrp() local 270 if (nhg == NULL) { in alloc_nhgrp() 275 nhg->nhg_size = nhgrp_size; in alloc_nhgrp() 279 nhg_priv = NHGRP_PRIV(nhg); in alloc_nhgrp() 286 nhg_priv->nhg = nhg; in alloc_nhgrp() 301 nhg_priv = NHGRP_PRIV(nhg); in nhgrp_ref_object() 313 nhg_priv = NHGRP_PRIV(nhg); in nhgrp_free() 367 free(nhg_priv->nhg, M_NHOP); in destroy_nhgrp_int() 693 nhg_priv = NHGRP_PRIV(nhg); in nhgrp_get_nhops() [all …]
|
| H A D | route_var.h | 270 struct nhgrp_object *nhg = (struct nhgrp_object *)nh; in nhop_select() local 271 nh = nhg->nhops[flowid % nhg->nhg_size]; in nhop_select() 285 struct rtentry *rt, struct nhgrp_object *nhg, struct rib_cmd_info *rc); 305 void nhgrp_ref_object(struct nhgrp_object *nhg); 306 uint32_t nhgrp_get_idx(const struct nhgrp_object *nhg); 307 void nhgrp_free(struct nhgrp_object *nhg);
|
| H A D | mpath_ctl.c | 165 struct rtentry *rt, struct nhgrp_object *nhg, in del_route_mpath() argument 184 error = nhgrp_get_filtered_group(rh, nhg, gw_filter_func, (void *)&ri, in del_route_mpath()
|
| H A D | nhgrp_var.h | 56 struct nhgrp_object *nhg; member
|
| H A D | route_ctl.h | 129 struct weightened_nhop *nhgrp_get_nhops(struct nhgrp_object *nhg,
|
| H A D | route_ctl.c | 1345 struct nhgrp_object *nhg; in rib_walk_del() local 1349 nhg = (struct nhgrp_object *)nh; in rib_walk_del() 1350 wn = nhgrp_get_nhops(nhg, &num_nhops); in rib_walk_del()
|
| /f-stack/tools/netstat/ |
| H A D | nhgrp.c | 202 struct nhgrp_external *nhg; in dump_nhgrp_sysctl() local 239 nhg = (struct nhgrp_external *)(rtm + 1); in dump_nhgrp_sysctl() 240 nhg_map[nhg_count].idx = nhg->nhg_idx; in dump_nhgrp_sysctl() 256 struct nhgrp_external *nhg; in print_nhgrp_sysctl() local 273 nhg = (struct nhgrp_external *)(rtm + 1); in print_nhgrp_sysctl() 274 print_nhgroup_entry_sysctl("nhgrp-entry", rtm, nhg); in print_nhgrp_sysctl()
|
| /f-stack/lib/ |
| H A D | ff_route.c | 591 nhgrp_get_nhops(struct nhgrp_object *nhg, uint32_t *pnum_nhops) in nhgrp_get_nhops() argument 595 KASSERT(((nhg->nhg_flags & MPF_MULTIPATH) != 0), ("nhop is not mpath")); in nhgrp_get_nhops() 597 nhg_priv = NHGRP_PRIV(nhg); in nhgrp_get_nhops()
|