Home
last modified time | relevance | path

Searched refs:nhg (Results 1 – 11 of 11) sorted by relevance

/freebsd-13-stable/sys/net/route/
HDnhgrp_ctl.c242 dst = dst_priv->nhg; in compile_nhgrp()
282 struct nhgrp_object *nhg; in alloc_nhgrp() local
292 nhg = malloc(sz, M_NHOP, M_NOWAIT | M_ZERO); in alloc_nhgrp()
293 if (nhg == NULL) { in alloc_nhgrp()
301 nhg->nhg_size = nhgrp_size; in alloc_nhgrp()
302 nhg->nhg_flags = MPF_MULTIPATH; in alloc_nhgrp()
304 nhg_priv = NHGRP_PRIV(nhg); in alloc_nhgrp()
311 nhg_priv->nhg = nhg; in alloc_nhgrp()
318 compile_nhgrp(nhg_priv, wn, nhg->nhg_size); in alloc_nhgrp()
324 nhgrp_ref_object(struct nhgrp_object *nhg) in nhgrp_ref_object() argument
[all …]
HDnhop.h227 struct nhgrp_object *nhgrp_get_nhgrp(struct nhgrp_object *nhg, int *perror);
228 void nhgrp_set_uidx(struct nhgrp_object *nhg, uint32_t uidx);
229 uint32_t nhgrp_get_uidx(const struct nhgrp_object *nhg);
230 uint8_t nhgrp_get_origin(const struct nhgrp_object *nhg);
231 void nhgrp_set_origin(struct nhgrp_object *nhg, uint8_t origin);
HDroute_var.h283 struct nhgrp_object *nhg = (struct nhgrp_object *)nh; in nhop_select() local
284 nh = nhg->nhops[flowid % nhg->nhg_size]; in nhop_select()
314 void nhgrp_ref_object(struct nhgrp_object *nhg);
315 uint32_t nhgrp_get_idx(const struct nhgrp_object *nhg);
316 void nhgrp_free(struct nhgrp_object *nhg);
HDnhgrp.c183 nhgrp_print_buf(grp_priv->nhg, nhgrp_buf, sizeof(nhgrp_buf))); in link_nhgrp()
215 nhgrp_print_buf(nhg_priv_ret->nhg, nhgrp_buf, sizeof(nhgrp_buf)); in unlink_nhgrp()
341 nhgrp_print_buf(nhg_priv->nhg, nhgbuf, sizeof(nhgbuf))); in nhgrp_ctl_unlink_all()
HDnhgrp_var.h56 struct nhgrp_object *nhg; member
HDroute_ctl.c999 struct nhgrp_object *nhg = (struct nhgrp_object *)nh; in rt_delete_conditional() local
1005 error = nhgrp_get_filtered_group(rnh, rt, nhg, cb, cbdata, &rnd); in rt_delete_conditional()
1007 if (rnd.rnd_nhgrp == nhg) { in rt_delete_conditional()
1500 struct nhgrp_object *nhg; in rib_walk_del() local
1504 nhg = (struct nhgrp_object *)nh; in rib_walk_del()
1505 wn = nhgrp_get_nhops(nhg, &num_nhops); in rib_walk_del()
HDroute_debug.h166 char *nhgrp_print_buf(const struct nhgrp_object *nhg, char *buf, size_t bufsize);
HDroute_ctl.h163 const struct weightened_nhop *nhgrp_get_nhops(const struct nhgrp_object *nhg,
/freebsd-13-stable/usr.bin/netstat/
HDnhgrp.c201 struct nhgrp_external *nhg; in dump_nhgrp_sysctl() local
238 nhg = (struct nhgrp_external *)(rtm + 1); in dump_nhgrp_sysctl()
239 nhg_map[nhg_count].idx = nhg->nhg_idx; in dump_nhgrp_sysctl()
255 struct nhgrp_external *nhg; in print_nhgrp_sysctl() local
272 nhg = (struct nhgrp_external *)(rtm + 1); in print_nhgrp_sysctl()
273 print_nhgroup_entry_sysctl("nhgrp-entry", rtm, nhg); in print_nhgrp_sysctl()
/freebsd-13-stable/sys/netlink/route/
HDrt.c72 const struct nhgrp_object *nhg = (const struct nhgrp_object *)nh; in nl_get_rtm_protocol() local
73 uint8_t origin = nhgrp_get_origin(nhg); in nl_get_rtm_protocol()
76 nh = nhg->nhops[0]; in nl_get_rtm_protocol()
179 dump_rc_nhg(struct nl_writer *nw, const struct nhgrp_object *nhg, struct rtmsg *rtm) in dump_rc_nhg() argument
181 uint32_t uidx = nhgrp_get_uidx(nhg); in dump_rc_nhg()
183 const struct weightened_nhop *wn = nhgrp_get_nhops(nhg, &num_nhops); in dump_rc_nhg()
188 nlattr_add_u32(nw, NL_RTA_KNH_ID, nhgrp_get_idx(nhg)); in dump_rc_nhg()
794 struct nhgrp_object *nhg; in create_nexthop_from_attrs() local
796 nhg = nhgrp_alloc(rh->rib_fibnum, rh->rib_family, in create_nexthop_from_attrs()
798 if (nhg != NULL) { in create_nexthop_from_attrs()
[all …]
HDnexthop.c323 struct nhgrp_object *nhg; in clone_unhop() local
325 error = nhgrp_get_group(rh, wn_new, num_nhops, unhop->un_idx, &nhg); in clone_unhop()
326 nh = (struct nhop_object *)nhg; in clone_unhop()