Lines Matching refs:rnd
221 dump_rc_nhop(struct nl_writer *nw, const struct route_nhop_data *rnd, struct rtmsg *rtm)
224 if (NH_IS_NHGRP(rnd->rnd_nhop)) {
225 dump_rc_nhg(nw, rnd->rnd_nhgrp, rtm);
229 const struct nhop_object *nh = rnd->rnd_nhop;
258 if (rnd->rnd_weight != RT_DEFAULT_WEIGHT)
259 nlattr_add_u32(nw, NL_RTA_WEIGHT, rnd->rnd_weight);
268 const struct rtentry *rt, struct route_nhop_data *rnd,
289 rtm->rtm_protocol = nl_get_rtm_protocol(rnd->rnd_nhop);
290 rtm->rtm_type = get_rtm_type(rnd->rnd_nhop);
326 dump_rc_nhop(nw, rnd, rtm);
358 struct route_nhop_data rnd = {
377 dump_px(fibnum, hdr, rc->rc_rt, &rnd, &nw);
543 struct route_nhop_data rnd;
567 rt_get_rnd(rt, &wa->rnd);
569 error = dump_px(wa->fibnum, &wa->hdr, rt, &wa->rnd, wa->nw);
628 struct route_nhop_data rnd;
646 rt = rib_lookup_prefix_plen(rnh, dst, attrs->rtm_dst_len, &rnd);
654 rt_get_rnd(rt, &rnd);
655 rnd.rnd_nhop = nhop_select_func(rnd.rnd_nhop, 0);
665 nhop_print_buf_any(rnd.rnd_nhop, nhbuf, sizeof(nhbuf)),
670 dump_px(fibnum, hdr, rt, &rnd, npt->nw);
980 struct route_nhop_data rnd = { .rnd_nhop = nh, .rnd_weight = attrs.rta_weight };
984 &rnd, op_flags, &rc);
1093 struct route_nhop_data rnd = {
1105 dump_px(fibnum, &hdr, rc->rc_rt, &rnd, &nw);