summaryrefslogtreecommitdiff
path: root/lib/if.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-03-11 07:27:15 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-03-15 10:36:23 -0400
commit1306c09a1b6996f7afa3ac651659c40146117834 (patch)
treecb1a038dfebfb2532b8b067ffdb79d04eae41518 /lib/if.h
parenta90607a4ba81caec852bd2e15f541ff12b08c031 (diff)
*: Refactor if_lookup_by_name to be VRF aware
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/if.h')
-rw-r--r--lib/if.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/if.h b/lib/if.h
index 7a0e6042bc..262e292ac5 100644
--- a/lib/if.h
+++ b/lib/if.h
@@ -404,12 +404,11 @@ extern struct interface *if_lookup_prefix (struct prefix *prefix,
/* These 2 functions are to be used when the ifname argument is terminated
by a '\0' character: */
-extern struct interface *if_lookup_by_name (const char *ifname);
extern struct interface *if_get_by_name (const char *ifname);
extern struct interface *if_lookup_by_name_all_vrf (const char *ifname);
-extern struct interface *if_lookup_by_name_vrf (const char *ifname,
- vrf_id_t vrf_id);
+extern struct interface *if_lookup_by_name (const char *ifname,
+ vrf_id_t vrf_id);
extern struct interface *if_get_by_name_vrf (const char *ifname,
vrf_id_t vrf_id);