summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/if.c8
-rw-r--r--lib/if.h3
2 files changed, 2 insertions, 9 deletions
diff --git a/lib/if.c b/lib/if.c
index 8b10c91b94..14c333a4e7 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -339,7 +339,7 @@ if_lookup_by_name_len(const char *name, size_t namelen)
/* Lookup interface by IPv4 address. */
struct interface *
-if_lookup_exact_address_vrf (void *src, int family, vrf_id_t vrf_id)
+if_lookup_exact_address (void *src, int family, vrf_id_t vrf_id)
{
struct listnode *node;
struct listnode *cnode;
@@ -371,12 +371,6 @@ if_lookup_exact_address_vrf (void *src, int family, vrf_id_t vrf_id)
return NULL;
}
-struct interface *
-if_lookup_exact_address (void *src, int family)
-{
- return if_lookup_exact_address_vrf (src, family, VRF_DEFAULT);
-}
-
/* Lookup interface by IPv4 address. */
struct connected *
if_lookup_address_vrf (void *matchaddr, int family, vrf_id_t vrf_id)
diff --git a/lib/if.h b/lib/if.h
index 10740957b5..6be1d4b891 100644
--- a/lib/if.h
+++ b/lib/if.h
@@ -389,7 +389,6 @@ struct nbr_connected
/* Prototypes. */
extern int if_cmp_name_func (char *, char *);
-extern struct interface *if_lookup_exact_address (void *matchaddr, int family);
extern struct connected *if_lookup_address (void *matchaddr, int family);
extern struct interface *if_lookup_prefix (struct prefix *prefix);
@@ -398,7 +397,7 @@ extern void if_update_vrf (struct interface *, const char *name, int namelen,
extern struct interface *if_create (const char *name, int namelen,
vrf_id_t vrf_id);
extern struct interface *if_lookup_by_index (ifindex_t, vrf_id_t vrf_id);
-extern struct interface *if_lookup_exact_address_vrf (void *matchaddr, int family,
+extern struct interface *if_lookup_exact_address (void *matchaddr, int family,
vrf_id_t vrf_id);
extern struct connected *if_lookup_address_vrf (void *matchaddr, int family,
vrf_id_t vrf_id);