Skip to content

Commit

Permalink
Merge pull request #16472 from donaldsharp/msdp_bug
Browse files Browse the repository at this point in the history
pimd: Fix msdp setting of sa->rp
  • Loading branch information
ton31337 authored Jul 25, 2024
2 parents 4e7f4d0 + c4b4c24 commit 23c756c
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 23c756c

Please sign in to comment.