summaryrefslogtreecommitdiff
path: root/lib/if.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-03-11 07:13:49 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-03-15 10:33:16 -0400
commita90607a4ba81caec852bd2e15f541ff12b08c031 (patch)
tree23c32f169d41ac7fa5823a01cf5776d1040138a7 /lib/if.c
parentfa787f911c3063133e4cdc7788645766e64376eb (diff)
lib, ospf6d: Refactor if_lookup_prefix
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/if.c b/lib/if.c
index 633c949ca3..4c8f16d37d 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -410,7 +410,7 @@ if_lookup_address (void *matchaddr, int family, vrf_id_t vrf_id)
/* Lookup interface by prefix */
struct interface *
-if_lookup_prefix_vrf (struct prefix *prefix, vrf_id_t vrf_id)
+if_lookup_prefix (struct prefix *prefix, vrf_id_t vrf_id)
{
struct listnode *node;
struct listnode *cnode;
@@ -430,12 +430,6 @@ if_lookup_prefix_vrf (struct prefix *prefix, vrf_id_t vrf_id)
return NULL;
}
-struct interface *
-if_lookup_prefix (struct prefix *prefix)
-{
- return if_lookup_prefix_vrf (prefix, VRF_DEFAULT);
-}
-
/* Get interface by name if given name interface doesn't exist create
one. */
struct interface *