summaryrefslogtreecommitdiffstats
path: root/lib/if.h
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-10-14 20:06:38 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2021-10-15 02:44:42 +0200
commit0df2e1888b1e8011bc1e3ec6ed6c34a9e6fcaae9 (patch)
tree4a56a81402e1cd1f20e92bb3ba9bdeed55f0b618 /lib/if.h
parentzebra: fix ptm message processing (diff)
downloadfrr-0df2e1888b1e8011bc1e3ec6ed6c34a9e6fcaae9.tar.xz
frr-0df2e1888b1e8011bc1e3ec6ed6c34a9e6fcaae9.zip
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.h')
-rw-r--r--lib/if.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/if.h b/lib/if.h
index 59e75d8b6..60d571b54 100644
--- a/lib/if.h
+++ b/lib/if.h
@@ -529,7 +529,6 @@ size_t if_lookup_by_hwaddr(const uint8_t *hw_addr, size_t addrsz,
struct interface ***result, vrf_id_t vrf_id);
struct vrf;
-extern struct interface *if_lookup_by_name_all_vrf(const char *ifname);
extern struct interface *if_lookup_by_name_vrf(const char *name, struct vrf *vrf);
extern struct interface *if_lookup_by_name(const char *ifname, vrf_id_t vrf_id);
extern struct interface *if_get_by_name(const char *ifname, vrf_id_t vrf_id);