mirror of
https://github.com/FRRouting/frr.git
synced 2025-05-01 05:57:15 +02:00
Merge 72591bc8bf
into 3dd4d417be
This commit is contained in:
commit
4d503670c8
|
@ -587,6 +587,7 @@ interface_recalculate(struct interface *ifp)
|
||||||
int mtu, rc;
|
int mtu, rc;
|
||||||
struct ipv6_mreq mreq;
|
struct ipv6_mreq mreq;
|
||||||
babel_interface_nfo *babel_ifp = babel_get_if_nfo(ifp);
|
babel_interface_nfo *babel_ifp = babel_get_if_nfo(ifp);
|
||||||
|
struct connected *connected;
|
||||||
assert (babel_ifp != NULL);
|
assert (babel_ifp != NULL);
|
||||||
|
|
||||||
if (!IS_ENABLE(ifp))
|
if (!IS_ENABLE(ifp))
|
||||||
|
@ -597,6 +598,14 @@ interface_recalculate(struct interface *ifp)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
babel_ifp->ipv4 = malloc(4);
|
||||||
|
frr_each (if_connected, ifp->connected, connected) {
|
||||||
|
if (connected->address->family == AF_INET) {
|
||||||
|
memcpy(babel_ifp->ipv4, &connected->address->u.prefix4, 4);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
SET_FLAG(babel_ifp->flags, BABEL_IF_IS_UP);
|
SET_FLAG(babel_ifp->flags, BABEL_IF_IS_UP);
|
||||||
|
|
||||||
mtu = MIN(ifp->mtu, ifp->mtu6);
|
mtu = MIN(ifp->mtu, ifp->mtu6);
|
||||||
|
|
Loading…
Reference in a new issue