pim6d: IPv6-adjust BSM code

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
David Lamparter 2022-01-19 15:21:44 +01:00
parent f0d63d90bd
commit 809c11a9d8

View File

@ -1374,7 +1374,12 @@ int pim_bsm_process(struct interface *ifp, struct ip *ip_hdr, uint8_t *buf,
}
}
if (ip_hdr->ip_dst.s_addr == qpim_all_pim_routers_addr.s_addr) {
#if PIM_IPV == 4
if (ip_hdr->ip_dst.s_addr == qpim_all_pim_routers_addr.s_addr)
#else
if (0)
#endif
{
/* Multicast BSMs are only accepted if source interface & IP
* match RPF towards the BSR's IP address, or they have
* no-forward set