]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/zclient.c
This patch changes ospfd from only listening mode for BFD status updates to interacti...
[mirror_frr.git] / lib / zclient.c
index 1b03510ed555c3d1a36858f8d7bf15df18d0f70f..39b6f8ec5f79412ebec549155f358b3a0a9d1df3 100644 (file)
@@ -942,46 +942,6 @@ memconstant(const void *s, int c, size_t n)
   return 1;
 }
 
-struct interface*
-zebra_interface_bfd_read (struct stream *s, struct prefix *dp,
-                          struct prefix *sp)
-{
-  unsigned int ifindex;
-  struct interface *ifp = NULL;
-  int plen;
-
-  /* Get interface index. */
-  ifindex = stream_getl (s);
-
-  /* Lookup index. */
-  if (ifindex != 0)
-    {
-      ifp = if_lookup_by_index (ifindex);
-      if (ifp == NULL)
-        {
-          zlog_warn ("zebra_interface_bfd_read: "
-                     "Can't find interface by ifindex: %d ", ifindex);
-          return NULL;
-        }
-    }
-
-  /* Fetch destination address. */
-  dp->family = stream_getc (s);
-
-  plen = prefix_blen (dp);
-  stream_get (&dp->u.prefix, s, plen);
-  dp->prefixlen = stream_getc (s);
-
-  if (sp)
-    {
-      sp->family = stream_getc (s);
-
-      plen = prefix_blen (sp);
-      stream_get (&sp->u.prefix, s, plen);
-      sp->prefixlen = stream_getc (s);
-    }
-  return ifp;
-}
 
 struct connected *
 zebra_interface_address_read (int type, struct stream *s)