mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 03:53:38 +00:00
lib: copy rmap_src too in copy_nexthops
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
This commit is contained in:
parent
9fb47c0584
commit
8fad3ca3a0
@ -143,15 +143,16 @@ copy_nexthops (struct nexthop **tnh, struct nexthop *nh, struct nexthop *rparent
|
|||||||
for (nh1 = nh; nh1; nh1 = nh1->next)
|
for (nh1 = nh; nh1; nh1 = nh1->next)
|
||||||
{
|
{
|
||||||
nexthop = nexthop_new();
|
nexthop = nexthop_new();
|
||||||
nexthop->flags = nh->flags;
|
|
||||||
nexthop->type = nh->type;
|
|
||||||
nexthop->ifindex = nh->ifindex;
|
nexthop->ifindex = nh->ifindex;
|
||||||
memcpy(&(nexthop->gate), &(nh->gate), sizeof(union g_addr));
|
nexthop->type = nh->type;
|
||||||
memcpy(&(nexthop->src), &(nh->src), sizeof(union g_addr));
|
nexthop->flags = nh->flags;
|
||||||
|
memcpy(&nexthop->gate, &nh->gate, sizeof(nh->gate));
|
||||||
|
memcpy(&nexthop->src, &nh->src, sizeof(nh->src));
|
||||||
|
memcpy(&nexthop->rmap_src, &nh->rmap_src, sizeof(nh->rmap_src));
|
||||||
|
nexthop->rparent = rparent;
|
||||||
if (nh->nh_label)
|
if (nh->nh_label)
|
||||||
nexthop_add_labels (nexthop, nh->nh_label_type,
|
nexthop_add_labels (nexthop, nh->nh_label_type,
|
||||||
nh->nh_label->num_labels, &nh->nh_label->label[0]);
|
nh->nh_label->num_labels, &nh->nh_label->label[0]);
|
||||||
nexthop->rparent = rparent;
|
|
||||||
nexthop_add(tnh, nexthop);
|
nexthop_add(tnh, nexthop);
|
||||||
|
|
||||||
if (CHECK_FLAG(nh1->flags, NEXTHOP_FLAG_RECURSIVE))
|
if (CHECK_FLAG(nh1->flags, NEXTHOP_FLAG_RECURSIVE))
|
||||||
|
Loading…
Reference in New Issue
Block a user