mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-16 17:15:14 +00:00
Merge pull request #13244 from patrasar/pim_bsm
pimd: Process no-forward BSM packet
This commit is contained in:
commit
b1fe933c60
@ -156,7 +156,6 @@ static void pim_on_bs_timer(struct event *t)
|
|||||||
|
|
||||||
pim_nht_bsr_del(scope->pim, scope->current_bsr);
|
pim_nht_bsr_del(scope->pim, scope->current_bsr);
|
||||||
/* Reset scope zone data */
|
/* Reset scope zone data */
|
||||||
scope->accept_nofwd_bsm = false;
|
|
||||||
scope->state = ACCEPT_ANY;
|
scope->state = ACCEPT_ANY;
|
||||||
scope->current_bsr = PIMADDR_ANY;
|
scope->current_bsr = PIMADDR_ANY;
|
||||||
scope->current_bsr_prio = 0;
|
scope->current_bsr_prio = 0;
|
||||||
@ -1364,6 +1363,10 @@ int pim_bsm_process(struct interface *ifp, pim_sgaddr *sg, uint8_t *buf,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* BSM packet is seen, so resetting accept_nofwd_bsm to false */
|
||||||
|
if (pim->global_scope.accept_nofwd_bsm)
|
||||||
|
pim->global_scope.accept_nofwd_bsm = false;
|
||||||
|
|
||||||
if (!pim_addr_cmp(sg->grp, qpim_all_pim_routers_addr)) {
|
if (!pim_addr_cmp(sg->grp, qpim_all_pim_routers_addr)) {
|
||||||
/* Multicast BSMs are only accepted if source interface & IP
|
/* Multicast BSMs are only accepted if source interface & IP
|
||||||
* match RPF towards the BSR's IP address, or they have
|
* match RPF towards the BSR's IP address, or they have
|
||||||
|
Loading…
Reference in New Issue
Block a user