diff options
Diffstat (limited to 'zebra/interface.c')
-rw-r--r-- | zebra/interface.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/zebra/interface.c b/zebra/interface.c index 10344c628..da5e41e8d 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -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) |