mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 18:44:54 +00:00
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:
parent
c6c4b5e68f
commit
1925ca8f4e
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user