diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-10-14 21:06:38 +0300 |
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-10-15 03:44:42 +0300 |
| commit | 0df2e1888b1e8011bc1e3ec6ed6c34a9e6fcaae9 (patch) | |
| tree | 4a56a81402e1cd1f20e92bb3ba9bdeed55f0b618 /lib/if.c | |
| parent | f13fdc673c1a51df0cda0952da390f4d10a0ecd7 (diff) | |
lib: make if_lookup_by_name_all_vrf internal
This function doesn't work correctly with netns VRF backend as the same
ifname may be used in multiple netns simultaneously. So let's hide it
from the public API to reduce temptation to use it instead of writing
the correct code.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/if.c')
| -rw-r--r-- | lib/if.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -431,7 +431,7 @@ struct interface *if_lookup_by_name_vrf(const char *name, struct vrf *vrf) return RB_FIND(if_name_head, &vrf->ifaces_by_name, &if_tmp); } -struct interface *if_lookup_by_name_all_vrf(const char *name) +static struct interface *if_lookup_by_name_all_vrf(const char *name) { struct vrf *vrf; struct interface *ifp; |
