diff options
author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2024-08-05 19:36:18 +0200 |
---|---|---|
committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2024-09-30 16:05:43 +0200 |
commit | 30eb4b73ff0082f419c34e0a65636179aa02d9be (patch) | |
tree | 5fd7a8b5284ae7507bd07b9a19e2b1ee0a3773d2 /pimd | |
parent | Merge pull request #16939 from sri-mohan1/srib-24-frr-a (diff) | |
download | frr-30eb4b73ff0082f419c34e0a65636179aa02d9be.tar.xz frr-30eb4b73ff0082f419c34e0a65636179aa02d9be.zip |
pimd: remove unreachable code
MLD code is IPv6 only so the define `PIM_IPV` will never be 4.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'pimd')
-rw-r--r-- | pimd/pim6_mld.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/pimd/pim6_mld.c b/pimd/pim6_mld.c index 8ccf42d72..a87183770 100644 --- a/pimd/pim6_mld.c +++ b/pimd/pim6_mld.c @@ -62,7 +62,6 @@ static void gm_sg_timer_start(struct gm_if *gm_ifp, struct gm_sg *sg, sg->iface->ifp->name, &sg->sgaddr /* clang-format off */ -#if PIM_IPV == 6 static const pim_addr gm_all_hosts = { .s6_addr = { 0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, @@ -84,13 +83,6 @@ static const pim_addr gm_dummy_untracked = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, }, }; -#else -/* 224.0.0.1 */ -static const pim_addr gm_all_hosts = { .s_addr = htonl(0xe0000001), }; -/* 224.0.0.22 */ -static const pim_addr gm_all_routers = { .s_addr = htonl(0xe0000016), }; -static const pim_addr gm_dummy_untracked = { .s_addr = 0xffffffff, }; -#endif /* clang-format on */ #define IPV6_MULTICAST_SCOPE_LINK 2 |