]> git.puffer.fish Git - matthieu/frr.git/commitdiff
pim6d: IPv6-adjust BSM code
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 19 Jan 2022 14:21:44 +0000 (15:21 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Wed, 16 Feb 2022 15:40:56 +0000 (16:40 +0100)
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
pimd/pim_bsm.c

index 0b993ec05ea0432abd6560571ef90f723de5bd4c..068bb6b0556bf93e5506448876a4b100e34ef8c4 100644 (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