From 8ebcc02328c6b63ecf85e44fdfbf3365be27c127 Mon Sep 17 00:00:00 2001 From: Mobashshera Rasool Date: Mon, 12 Jun 2023 06:07:22 -0700 Subject: [PATCH] pimd,pim6d: Correct the socket to send reg-stop msg We were using the pim interface socket to send the register stop msg, it works fine in cases where the interface on which register msg is received and the interface on which the register-stop msg is supposed to be sent is the same. But when the interfaces are different, msg send fails because the outgoing interface is not right. Fixes: #13774 Signed-off-by: Mobashshera Rasool --- pimd/pim_register.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pimd/pim_register.c b/pimd/pim_register.c index b5d9df6f2a..2e554de7af 100644 --- a/pimd/pim_register.c +++ b/pimd/pim_register.c @@ -85,7 +85,7 @@ void pim_register_stop_send(struct interface *ifp, pim_sgaddr *sg, pim_addr src, zlog_debug("%s: No pinfo!", __func__); return; } - if (pim_msg_send(pinfo->pim_sock_fd, src, originator, buffer, + if (pim_msg_send(pinfo->pim->reg_sock, src, originator, buffer, b1length + PIM_MSG_REGISTER_STOP_LEN, ifp)) { if (PIM_DEBUG_PIM_TRACE) { zlog_debug( -- 2.39.5