mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 07:37:29 +00:00
zebra: Fix crash on macvlan link down/up
Whenever a link up change was detected on a macvlan device where the linked device wasn't visible in the namespace zebra was running in, the linked zebra interface was NULL. This was already handled in the event of a link down, but was ommitted from the upside. Added the same null check to the up-side. Signed-off-by: Tomi Salminen <tlsalmin@gmail.com>
This commit is contained in:
parent
ec1e9f4ba2
commit
bdf6a9ba81
@ -5159,6 +5159,15 @@ void zebra_vxlan_macvlan_up(struct interface *ifp)
|
|||||||
zif = ifp->info;
|
zif = ifp->info;
|
||||||
assert(zif);
|
assert(zif);
|
||||||
link_ifp = zif->link;
|
link_ifp = zif->link;
|
||||||
|
if (!link_ifp) {
|
||||||
|
if (IS_ZEBRA_DEBUG_VXLAN)
|
||||||
|
zlog_debug(
|
||||||
|
"macvlan parent link is not found. Parent index %d ifp %s",
|
||||||
|
zif->link_ifindex,
|
||||||
|
ifindex2ifname(zif->link_ifindex,
|
||||||
|
ifp->vrf->vrf_id));
|
||||||
|
return;
|
||||||
|
}
|
||||||
link_zif = link_ifp->info;
|
link_zif = link_ifp->info;
|
||||||
assert(link_zif);
|
assert(link_zif);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user