mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-09 18:50:39 +00:00
Merge pull request #11712 from mobash-rasool/fixes2
pimd: Simply the code a bit, reduce code complexity
This commit is contained in:
commit
d758d2a9b2
@ -801,23 +801,14 @@ void pim_if_addr_add_all(struct interface *ifp)
|
|||||||
pim_if_addr_add(ifc);
|
pim_if_addr_add(ifc);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!v4_addrs && v6_addrs && !if_is_loopback(ifp)) {
|
if (!v4_addrs && v6_addrs && !if_is_loopback(ifp) &&
|
||||||
if (pim_ifp->pim_enable) {
|
pim_ifp->pim_enable && !pim_addr_is_any(pim_ifp->primary_address) &&
|
||||||
|
pim_ifp->pim_sock_fd < 0 && pim_sock_add(ifp)) {
|
||||||
/* Interface has a valid primary address ? */
|
/* Interface has a valid primary address ? */
|
||||||
if (!pim_addr_is_any(pim_ifp->primary_address)) {
|
|
||||||
|
|
||||||
/* Interface has a valid socket ? */
|
/* Interface has a valid socket ? */
|
||||||
if (pim_ifp->pim_sock_fd < 0) {
|
zlog_warn("Failure creating PIM socket for interface %s",
|
||||||
if (pim_sock_add(ifp)) {
|
|
||||||
zlog_warn(
|
|
||||||
"Failure creating PIM socket for interface %s",
|
|
||||||
ifp->name);
|
ifp->name);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
} /* pim */
|
|
||||||
}
|
|
||||||
/*
|
/*
|
||||||
* PIM or IGMP is enabled on interface, and there is at least one
|
* PIM or IGMP is enabled on interface, and there is at least one
|
||||||
* address assigned, then try to create a vif_index.
|
* address assigned, then try to create a vif_index.
|
||||||
|
Loading…
Reference in New Issue
Block a user