diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2022-01-19 15:21:44 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2022-02-16 16:40:56 +0100 |
| commit | 809c11a9d87e0d12a5c3d3ca6906bc398a58de6c (patch) | |
| tree | d9afdc0d18453d836ead2b8e4b8870d14122c6b2 | |
| parent | f0d63d90bd2e2c4e189850bf7772e7ea2f4c501b (diff) | |
pim6d: IPv6-adjust BSM code
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
| -rw-r--r-- | pimd/pim_bsm.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 |
