From f20d0d7cf2c1ae1abc54770cdcd61af9792e837b Mon Sep 17 00:00:00 2001 From: Mobashshera Rasool Date: Mon, 28 Feb 2022 08:21:48 -0800 Subject: [PATCH] pim6d: Adjust pim_pkt_dst_addr_ok for PIMv6 Signed-off-by: Mobashshera Rasool --- pimd/pim_pim.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pimd/pim_pim.c b/pimd/pim_pim.c index bc0e7a6521..46040ab3ea 100644 --- a/pimd/pim_pim.c +++ b/pimd/pim_pim.c @@ -138,11 +138,11 @@ void pim_sock_delete(struct interface *ifp, const char *delete_message) } /* For now check dst address for hello, assrt and join/prune is all pim rtr */ -static bool pim_pkt_dst_addr_ok(enum pim_msg_type type, in_addr_t addr) +static bool pim_pkt_dst_addr_ok(enum pim_msg_type type, pim_addr addr) { if ((type == PIM_MSG_TYPE_HELLO) || (type == PIM_MSG_TYPE_ASSERT) || (type == PIM_MSG_TYPE_JOIN_PRUNE)) { - if (addr != qpim_all_pim_routers_addr.s_addr) + if (pim_addr_cmp(addr, qpim_all_pim_routers_addr)) return false; } -- 2.39.5