From 809c11a9d87e0d12a5c3d3ca6906bc398a58de6c Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Wed, 19 Jan 2022 15:21:44 +0100 Subject: [PATCH] pim6d: IPv6-adjust BSM code Signed-off-by: David Lamparter --- pimd/pim_bsm.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pimd/pim_bsm.c b/pimd/pim_bsm.c index 0b993ec05e..068bb6b055 100644 --- a/pimd/pim_bsm.c +++ b/pimd/pim_bsm.c @@ -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 -- 2.39.5