diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-02-27 18:31:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-27 18:31:28 +0200 |
| commit | c27fc6598dbc8e566394b93b43ea19b35b45813d (patch) | |
| tree | 9a4d3374672bc9cf94930d2e9542667c39b0aeff | |
| parent | 541503eecd302d2cc8456167d130014cd2cf1134 (diff) | |
| parent | 44e6e3868d7a1488447f2be446dbd7cb5a5559ce (diff) | |
Merge pull request #15399 from louis-6wind/fix-macvlan-crash
zebra: fix crash when macvlan link-interface is in another netns
| -rw-r--r-- | zebra/zebra_vxlan.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/zebra/zebra_vxlan.c b/zebra/zebra_vxlan.c index 361a300491..cc12cb4221 100644 --- a/zebra/zebra_vxlan.c +++ b/zebra/zebra_vxlan.c @@ -5153,6 +5153,11 @@ void zebra_vxlan_macvlan_up(struct interface *ifp) zif = ifp->info; assert(zif); + + if (zif->link_nsid) + /* the link interface is another namespace */ + return; + link_ifp = zif->link; link_zif = link_ifp->info; assert(link_zif); |
