Lines Matching defs:pnhops
516 struct weightened_nhop *pnhops;
530 pnhops = (struct weightened_nhop *)&storage[0];
532 pnhops = malloc(sz, M_TEMP, M_NOWAIT);
533 if (pnhops == NULL) {
540 memcpy(pnhops, src_priv->nhg_nh_weights,
542 memcpy(&pnhops[curr_nhops], wn, num_nhops * sizeof(struct weightened_nhop));
545 nhg_priv = get_nhgrp(ctl, pnhops, curr_nhops, perror);
547 if (pnhops != (struct weightened_nhop *)&storage[0])
548 free(pnhops, M_TEMP);
591 struct weightened_nhop *pnhops;
601 pnhops = (struct weightened_nhop *)&storage[0];
603 if ((pnhops = malloc(sz, M_TEMP, M_NOWAIT)) == NULL)
613 memcpy(&pnhops[num_nhops++], &src_priv->nhg_nh_weights[i],
621 rnd->rnd_nhop = pnhops[0].nh;
622 rnd->rnd_weight = pnhops[0].weight;
626 mp_priv = get_nhgrp(ctl, pnhops, num_nhops, &error);
632 if (pnhops != (struct weightened_nhop *)&storage[0])
633 free(pnhops, M_TEMP);