summaryrefslogtreecommitdiff
path: root/pimd/pim6_mld.c
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2024-08-05 14:36:18 -0300
committerRafael Zalamena <rzalamena@opensourcerouting.org>2024-09-30 11:05:43 -0300
commit30eb4b73ff0082f419c34e0a65636179aa02d9be (patch)
tree5fd7a8b5284ae7507bd07b9a19e2b1ee0a3773d2 /pimd/pim6_mld.c
parent8b1b5315c319240a6a5db2f163b7b063def89b5c (diff)
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/pim6_mld.c')
-rw-r--r--pimd/pim6_mld.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/pimd/pim6_mld.c b/pimd/pim6_mld.c
index 8ccf42d729..a871837701 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