mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-23 14:10:49 +00:00
zebra: check ZEBRA_IFC_REAL on if_up
Only connected routes which have ZEBRA_IFC_REAL set should be redistributed. Signed-off-by: Christian Franke <nobody@nowhere.ws> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
ff999357fd
commit
aa86a160f4
@ -512,9 +512,10 @@ if_install_connected (struct interface *ifp)
|
|||||||
{
|
{
|
||||||
for (ALL_LIST_ELEMENTS (ifp->connected, node, next, ifc))
|
for (ALL_LIST_ELEMENTS (ifp->connected, node, next, ifc))
|
||||||
{
|
{
|
||||||
p = ifc->address;
|
if (CHECK_FLAG(ifc->conf, ZEBRA_IFC_REAL))
|
||||||
zebra_interface_address_add_update (ifp, ifc);
|
zebra_interface_address_add_update (ifp, ifc);
|
||||||
|
|
||||||
|
p = ifc->address;
|
||||||
if (p->family == AF_INET)
|
if (p->family == AF_INET)
|
||||||
connected_up_ipv4 (ifp, ifc);
|
connected_up_ipv4 (ifp, ifc);
|
||||||
else if (p->family == AF_INET6)
|
else if (p->family == AF_INET6)
|
||||||
|
Loading…
Reference in New Issue
Block a user