summaryrefslogtreecommitdiffstats
path: root/zebra/rt_netlink.c
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2022-06-24 16:15:55 +0200
committerGitHub <noreply@github.com>2022-06-24 16:15:55 +0200
commita9adefc22fe93a5019b42a51759fde2823834d22 (patch)
tree7a57acb03cae47c1dd175be7a2c229ee08054e53 /zebra/rt_netlink.c
parentMerge pull request #11467 from mobash-rasool/fixes2 (diff)
parentzebra: Allow kernel routes to stick around better on interface state changes (diff)
downloadfrr-a9adefc22fe93a5019b42a51759fde2823834d22.tar.xz
frr-a9adefc22fe93a5019b42a51759fde2823834d22.zip
Merge pull request #11464 from donaldsharp/linkdown
Linkdown
Diffstat (limited to 'zebra/rt_netlink.c')
-rw-r--r--zebra/rt_netlink.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/zebra/rt_netlink.c b/zebra/rt_netlink.c
index 22f2d742e..ad9e13a0f 100644
--- a/zebra/rt_netlink.c
+++ b/zebra/rt_netlink.c
@@ -535,6 +535,9 @@ parse_nexthop_unicast(ns_id_t ns_id, struct rtmsg *rtm, struct rtattr **tb,
if (rtm->rtm_flags & RTNH_F_ONLINK)
SET_FLAG(nh.flags, NEXTHOP_FLAG_ONLINK);
+ if (rtm->rtm_flags & RTNH_F_LINKDOWN)
+ SET_FLAG(nh.flags, NEXTHOP_FLAG_LINKDOWN);
+
if (num_labels)
nexthop_add_labels(&nh, ZEBRA_LSP_STATIC, num_labels, labels);