mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 20:32:18 +00:00
pim6d: Handle IPV6 for "no ipv6 pim"
Issue: #11931 Signed-off-by: Sarita Patra <saritap@vmware.com>
This commit is contained in:
parent
2c7c09d94c
commit
78623256b6
@ -689,7 +689,7 @@ static void pim_if_addr_del_pim(struct connected *ifc)
|
||||
{
|
||||
struct pim_interface *pim_ifp = ifc->ifp->info;
|
||||
|
||||
if (ifc->address->family != AF_INET) {
|
||||
if (ifc->address->family != PIM_AF) {
|
||||
/* non-IPv4 address */
|
||||
return;
|
||||
}
|
||||
@ -843,7 +843,7 @@ void pim_if_addr_del_all(struct interface *ifp)
|
||||
for (ALL_LIST_ELEMENTS(ifp->connected, node, nextnode, ifc)) {
|
||||
struct prefix *p = ifc->address;
|
||||
|
||||
if (p->family != AF_INET)
|
||||
if (p->family != PIM_AF)
|
||||
continue;
|
||||
|
||||
pim_if_addr_del(ifc, 1 /* force_prim_as_any=true */);
|
||||
|
Loading…
Reference in New Issue
Block a user