summaryrefslogtreecommitdiff
path: root/zebra/interface.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-08-23 11:08:30 +0300
committerGitHub <noreply@github.com>2023-08-23 11:08:30 +0300
commit5acbff964eef34ab506c69ad60fca03676bced15 (patch)
tree856b49a60e4674ecdc9475277a8c9b8b0ac02268 /zebra/interface.c
parent58ade1ba5d1fb5b5b6565ba7552993493d93e395 (diff)
parentc937582491565d84e40bbd34a9371a3839a0a646 (diff)
Merge pull request #14251 from donaldsharp/protodown_rc_issue
zebra: Prevent protodown_rc from going Bzonkas
Diffstat (limited to 'zebra/interface.c')
-rw-r--r--zebra/interface.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/zebra/interface.c b/zebra/interface.c
index 90787f3aa0..9ca330571f 100644
--- a/zebra/interface.c
+++ b/zebra/interface.c
@@ -1195,6 +1195,12 @@ static bool if_ignore_set_protodown(const struct interface *ifp, bool new_down,
zif = ifp->info;
+ /*
+ * FRR does not have enough data to make this request
+ */
+ if (ifp->ifindex == IFINDEX_INTERNAL)
+ return true;
+
/* Current state as we know it */
old_down = !!(ZEBRA_IF_IS_PROTODOWN(zif));
old_set_down = !!CHECK_FLAG(zif->flags, ZIF_FLAG_SET_PROTODOWN);