summaryrefslogtreecommitdiffstats
path: root/lib/zclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/zclient.c')
-rw-r--r--lib/zclient.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/lib/zclient.c b/lib/zclient.c
index 1b03510ed..39b6f8ec5 100644
--- a/lib/zclient.c
+++ b/lib/zclient.c
@@ -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)