]> git.proxmox.com Git - mirror_frr.git/blobdiff - zebra/interface.c
This patch adds support for a new BFD session down message from zebra to
[mirror_frr.git] / zebra / interface.c
index 10344c62818cc6ae90ce240188c09d2f5935b23a..da5e41e8dcebdfe042fe563d23a4f3cd232b410e 100644 (file)
@@ -604,6 +604,23 @@ if_refresh (struct interface *ifp)
   if_get_flags (ifp);
 }
 
+/* BFD session goes down, send message to the protocols. */
+void
+if_bfd_session_down (struct interface *ifp, struct prefix *p)
+{
+  if (IS_ZEBRA_DEBUG_EVENT)
+    {
+      char buf[INET6_ADDRSTRLEN];
+
+      zlog_debug ("MESSAGE: ZEBRA_INTERFACE_BFD_DEST_DOWN %s/%d on %s",
+                  inet_ntop (p->family, &p->u.prefix, buf, INET6_ADDRSTRLEN),
+                  p->prefixlen, ifp->name);
+    }
+
+  zebra_interface_bfd_update (ifp, p);
+}
+
+
 /* Output prefix string to vty. */
 static int
 prefix_vty_out (struct vty *vty, struct prefix *p)