}
struct interface *
-if_lookup_by_name_len_vrf (const char *name, size_t namelen, vrf_id_t vrf_id)
+if_lookup_by_name_len (const char *name, size_t namelen, vrf_id_t vrf_id)
{
struct listnode *node;
struct interface *ifp;
return NULL;
}
-struct interface *
-if_lookup_by_name_len(const char *name, size_t namelen)
-{
- return if_lookup_by_name_len_vrf (name, namelen, VRF_DEFAULT);
-}
-
/* Lookup interface by IPv4 address. */
struct interface *
if_lookup_exact_address (void *src, int family, vrf_id_t vrf_id)
struct vrf *vrf;
struct listnode *node;
- ifp = if_lookup_by_name_len_vrf (name, namelen, vrf_id);
+ ifp = if_lookup_by_name_len (name, namelen, vrf_id);
if (ifp)
return ifp;
struct interface *ifp;
size_t seppos = 0;
- if ( (ifp = if_lookup_by_name_len_vrf (name, nlen, vrf_id)) != NULL)
+ if ( (ifp = if_lookup_by_name_len (name, nlen, vrf_id)) != NULL)
return ifp;
/* hunt the primary interface name... */
/* 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);
stream_get (ifname_tmp, s, INTERFACE_NAMSIZ);
/* Lookup this by interface index. */
- ifp = if_lookup_by_name_len_vrf (ifname_tmp,
- strnlen (ifname_tmp, INTERFACE_NAMSIZ),
- vrf_id);
+ ifp = if_lookup_by_name_len (ifname_tmp,
+ strnlen (ifname_tmp, INTERFACE_NAMSIZ),
+ vrf_id);
if (ifp == NULL)
{
zlog_warn ("INTERFACE_STATE: Cannot find IF %s in VRF %d",
/* And look it up. */
return if_lookup_by_name_len(ifname_tmp,
- strnlen(ifname_tmp, INTERFACE_NAMSIZ));
+ strnlen(ifname_tmp, INTERFACE_NAMSIZ),
+ VRF_DEFAULT);
}
static int