summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMobashshera Rasool <mrasool@vmware.com>2023-06-12 06:07:22 -0700
committerMobashshera Rasool <mrasool@vmware.com>2023-06-12 22:51:44 -0700
commit8ebcc02328c6b63ecf85e44fdfbf3365be27c127 (patch)
treee72f00eceac3f350d11a3c18212f847c419c32ef
parentb8396c9cb00a57a1daa981bfa9566dc900f91844 (diff)
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 <mrasool@vmware.com>
-rw-r--r--pimd/pim_register.c2
1 files changed, 1 insertions, 1 deletions
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(