diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-09-23 08:45:09 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-23 08:45:09 +0300 |
| commit | 0ce5baaab1cefb0cd89cd526ab5225cd3a58a921 (patch) | |
| tree | b2107db6725811ab8e04468adc7317d22c631c0d /lib/netns_linux.c | |
| parent | efdd997dad76b534826701bbc2145abcd1945f83 (diff) | |
| parent | 1eb92f06c4e39a47a82ae585cfb276497843de6c (diff) | |
Merge pull request #7018 from gouault6wind/show_ip_route
Clean up in vrf management
Diffstat (limited to 'lib/netns_linux.c')
| -rw-r--r-- | lib/netns_linux.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/netns_linux.c b/lib/netns_linux.c index e8d549b4e0..c688433983 100644 --- a/lib/netns_linux.c +++ b/lib/netns_linux.c @@ -43,9 +43,6 @@ DEFINE_MTYPE_STATIC(LIB, NS, "NetNS Context") DEFINE_MTYPE_STATIC(LIB, NS_NAME, "NetNS Name") -/* default NS ID value used when VRF backend is not NETNS */ -#define NS_DEFAULT_INTERNAL 0 - static inline int ns_compare(const struct ns *ns, const struct ns *ns2); static struct ns *ns_lookup_name_internal(const char *name); @@ -101,9 +98,6 @@ static inline int setns(int fd, int nstype) static int have_netns_enabled = -1; #endif /* HAVE_NETNS */ -/* default NS ID value used when VRF backend is not NETNS */ -#define NS_DEFAULT_INTERNAL 0 - static int have_netns(void) { #ifdef HAVE_NETNS @@ -612,15 +606,7 @@ ns_id_t ns_id_get_absolute(ns_id_t ns_id_reference, ns_id_t link_nsid) return ns->ns_id; } -ns_id_t ns_get_default_id(void) -{ - if (default_ns) - return default_ns->ns_id; - return NS_DEFAULT_INTERNAL; -} - struct ns *ns_get_default(void) { return default_ns; } - |
