Skip to content

Commit

Permalink
Merge pull request FRRouting#16477 from FRRouting/mergify/bp/stable/1…
Browse files Browse the repository at this point in the history
…0.0/pr-16472

pimd: Fix msdp setting of sa->rp (backport FRRouting#16472)
  • Loading branch information
donaldsharp authored Jul 26, 2024
2 parents abb2891 + 3249573 commit e77bd73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions pimd/pim_msdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,12 +411,10 @@ void pim_msdp_sa_ref(struct pim_instance *pim, struct pim_msdp_peer *mp,
pim_addr_to_prefix(&grp, sa->sg.grp);
rp_info = pim_rp_find_match_group(pim, &grp);
if (rp_info) {
sa->rp = rp_info->rp.rpf_addr;
} else
{
sa->rp = pim->msdp.originator_id;
sa->rp = rp_info->rp.rpf_addr;
} else {
sa->rp = pim->msdp.originator_id;
}
sa->rp = pim->msdp.originator_id;
pim_msdp_pkt_sa_tx_one(sa);
}
sa->flags &= ~PIM_MSDP_SAF_STALE;
Expand Down
4 changes: 2 additions & 2 deletions tests/topotests/msdp_topo1/test_msdp_topo1.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def test_msdp():
"192.168.10.100": {
"source": "192.168.10.100",
"group": "229.1.2.3",
"rp": "192.168.1.1",
"rp": "10.254.254.1",
"local": "no",
"sptSetup": "no",
}
Expand Down Expand Up @@ -394,7 +394,7 @@ def test_msdp():
"192.168.10.100": {
"source": "192.168.10.100",
"group": "229.1.2.3",
"rp": "192.168.1.1",
"rp": "10.254.254.1",
"local": "no",
"sptSetup": "yes",
}
Expand Down

0 comments on commit e77bd73

Please sign in to comment.