summaryrefslogtreecommitdiff
path: root/lib/if.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-03-11 07:09:21 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-03-15 10:32:09 -0400
commitfa787f911c3063133e4cdc7788645766e64376eb (patch)
treed2ff9a6a911342d5e21c61a1edc7ec07af9922ce /lib/if.h
parent95af5f130aca6c73465112e18f0dbe7fa4b3c979 (diff)
lib, ospfd: Refactor if_lookup_by_name_len
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/if.h')
-rw-r--r--lib/if.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/if.h b/lib/if.h
index 72d78c5d5c..7a1274c31e 100644
--- a/lib/if.h
+++ b/lib/if.h
@@ -417,12 +417,10 @@ extern struct interface *if_get_by_name_vrf (const char *ifname,
/* For these 2 functions, the namelen argument should be the precise length
of the ifname string (not counting any optional trailing '\0' character).
In most cases, strnlen should be used to calculate the namelen value. */
-extern struct interface *if_lookup_by_name_len(const char *ifname,
- size_t namelen);
extern struct interface *if_get_by_name_len(const char *ifname,size_t namelen);
-extern struct interface *if_lookup_by_name_len_vrf(const char *ifname,
- size_t namelen, vrf_id_t vrf_id);
+extern struct interface *if_lookup_by_name_len(const char *ifname,
+ size_t namelen, vrf_id_t vrf_id);
extern struct interface *if_get_by_name_len_vrf(const char *ifname,
size_t namelen, vrf_id_t vrf_id, int vty);