Skip to content

Commit

Permalink
Merge pull request #15601 from FRRouting/mergify/bp/dev/10.0/pr-15010
Browse files Browse the repository at this point in the history
zebra: Fix crash on macvlan link down/up (backport #15010)
  • Loading branch information
ton31337 authored Mar 25, 2024
2 parents 11fad42 + aa4e1f5 commit 4cd6de9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions zebra/zebra_vxlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -5163,6 +5163,15 @@ void zebra_vxlan_macvlan_up(struct interface *ifp)
return;

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;
assert(link_zif);

Expand Down

0 comments on commit 4cd6de9

Please sign in to comment.