pimd: fix pim interface deletion flow

Deletion of pim interface(pim_if_delete) should
do the below things before cleanup.
1. Send a hello message with zero hold time.
2. Delete all the neighbors.
3. Close the pim socket.

Signed-off-by: Sarita Patra <saritap@vmware.com>
This commit is contained in:
Sarita Patra 2022-06-24 07:48:03 -07:00
parent c6c4b5e68f
commit 1925ca8f4e

View File

@ -213,8 +213,8 @@ void pim_if_delete(struct interface *ifp)
#if PIM_IPV == 4
igmp_sock_delete_all(ifp);
#endif
pim_neighbor_delete_all(ifp, "Interface removed from configuration");
if (pim_ifp->pim_sock_fd >= 0)
pim_sock_delete(ifp, "Interface removed from configuration");
pim_if_del_vif(ifp);