summaryrefslogtreecommitdiff
path: root/lib/if.h
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-10-14 19:15:14 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2021-10-28 18:54:46 +0300
commit35367f03504e984f620bd1af64090b21022b3a99 (patch)
treef350eb6a0b96d46f3779fe7f60ad3a17822c1a9d /lib/if.h
parenta2df495fdf21a08c8ab430303bd3c4e2e8c7f7a9 (diff)
lib: make if_lookup_by_index_all_vrf internal
This function doesn't work correctly with netns VRF backend as the same index 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 59e75d8b68..3e6e6143a3 100644
--- a/lib/if.h
+++ b/lib/if.h
@@ -518,7 +518,6 @@ extern struct interface *if_create_ifindex(ifindex_t ifindex, vrf_id_t vrf_id);
extern struct interface *if_lookup_by_index(ifindex_t, vrf_id_t vrf_id);
extern struct interface *if_vrf_lookup_by_index_next(ifindex_t ifindex,
vrf_id_t vrf_id);
-extern struct interface *if_lookup_by_index_all_vrf(ifindex_t);
extern struct interface *if_lookup_exact_address(const void *matchaddr,
int family, vrf_id_t vrf_id);
extern struct connected *if_lookup_address(const void *matchaddr, int family,