diff options
| author | Russ White <russ@riw.us> | 2021-11-05 15:17:31 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-05 15:17:31 -0400 |
| commit | ed79d896b2682886bb4935a7782b2ded7c283981 (patch) | |
| tree | 6122727926e0b435927f3cece471f85114bd3ddf /lib/if.c | |
| parent | e27eaa0d9f92f42a95eca801979d45287141bfc0 (diff) | |
| parent | 35367f03504e984f620bd1af64090b21022b3a99 (diff) | |
Merge pull request #9833 from idryzhov/cleanup-if-by-index-all-vrf
*: fix usage of if_lookup_by_index_all_vrf
Diffstat (limited to 'lib/if.c')
| -rw-r--r-- | lib/if.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -48,6 +48,7 @@ DEFINE_MTYPE_STATIC(LIB, IF_LINK_PARAMS, "Informational Link Parameters"); static void if_set_name(struct interface *ifp, const char *name); static struct interface *if_lookup_by_ifindex(ifindex_t ifindex, vrf_id_t vrf_id); +static struct interface *if_lookup_by_index_all_vrf(ifindex_t ifindex); static int if_cmp_func(const struct interface *, const struct interface *); static int if_cmp_index_func(const struct interface *ifp1, const struct interface *ifp2); @@ -440,7 +441,7 @@ static struct interface *if_lookup_by_name_all_vrf(const char *name) return NULL; } -struct interface *if_lookup_by_index_all_vrf(ifindex_t ifindex) +static struct interface *if_lookup_by_index_all_vrf(ifindex_t ifindex) { struct vrf *vrf; struct interface *ifp; |
