Home
last modified time | relevance | path

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

/freebsd/sys/net/route/
H A Dnhgrp_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 …]
H A Dnhop.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);
H A Droute_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);
H A Dnhgrp.c182 nhgrp_print_buf(grp_priv->nhg, nhgrp_buf, sizeof(nhgrp_buf))); in link_nhgrp()
214 nhgrp_print_buf(nhg_priv_ret->nhg, nhgrp_buf, sizeof(nhgrp_buf)); in unlink_nhgrp()
340 nhgrp_print_buf(nhg_priv->nhg, nhgbuf, sizeof(nhgbuf))); in nhgrp_ctl_unlink_all()
H A Dnhgrp_var.h56 struct nhgrp_object *nhg; member
H A Droute_ctl.c1014 struct nhgrp_object *nhg = (struct nhgrp_object *)nh; in rt_delete_conditional() local
1020 error = nhgrp_get_filtered_group(rnh, rt, nhg, cb, cbdata, &rnd); in rt_delete_conditional()
1022 if (rnd.rnd_nhgrp == nhg) { in rt_delete_conditional()
1515 struct nhgrp_object *nhg; in rib_walk_del() local
1519 nhg = (struct nhgrp_object *)nh; in rib_walk_del()
1520 wn = nhgrp_get_nhops(nhg, &num_nhops); in rib_walk_del()
H A Droute_debug.h177 char *nhgrp_print_buf(const struct nhgrp_object *nhg, char *buf, size_t bufsize);
H A Droute_ctl.h176 const struct weightened_nhop *nhgrp_get_nhops(const struct nhgrp_object *nhg,
/freebsd/usr.bin/netstat/
H A Dnhgrp.c199 struct nhgrp_external *nhg; in dump_nhgrp_sysctl() local
236 nhg = (struct nhgrp_external *)(rtm + 1); in dump_nhgrp_sysctl()
237 nhg_map[nhg_count].idx = nhg->nhg_idx; in dump_nhgrp_sysctl()
253 struct nhgrp_external *nhg; in print_nhgrp_sysctl() local
270 nhg = (struct nhgrp_external *)(rtm + 1); in print_nhgrp_sysctl()
271 print_nhgroup_entry_sysctl("nhgrp-entry", rtm, nhg); in print_nhgrp_sysctl()
/freebsd/sys/netlink/route/
H A Drt.c59 /* Use the fact that nhg runtime flags are only NHF_MULTIPATH */ in get_rtm_type()
72 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()
874 struct nhgrp_object *nhg; in create_nexthop_from_attrs()
876 nhg in create_nexthop_from_attrs()
862 struct nhgrp_object *nhg; create_nexthop_from_attrs() local
[all...]
H A Dnexthop.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()