mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 11:15:47 +00:00
pimd: Refactor pim_find_primary_addr
The pim_find_primary_addr function just called 1 static function that was called no where else. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
fb5d6e2f41
commit
89f1d91ecc
@ -573,7 +573,8 @@ void pim_if_addr_del_all_pim(struct interface *ifp)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct in_addr find_first_nonsec_addr(struct interface *ifp)
|
struct in_addr
|
||||||
|
pim_find_primary_addr (struct interface *ifp)
|
||||||
{
|
{
|
||||||
struct connected *ifc;
|
struct connected *ifc;
|
||||||
struct listnode *node;
|
struct listnode *node;
|
||||||
@ -602,11 +603,6 @@ static struct in_addr find_first_nonsec_addr(struct interface *ifp)
|
|||||||
return addr;
|
return addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct in_addr pim_find_primary_addr(struct interface *ifp)
|
|
||||||
{
|
|
||||||
return find_first_nonsec_addr(ifp);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int pim_iface_vif_index = 0;
|
static int pim_iface_vif_index = 0;
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Loading…
Reference in New Issue
Block a user