summaryrefslogtreecommitdiff
path: root/lib/ns.h
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2019-08-02 17:10:11 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2019-08-02 17:10:11 +0300
commitc7975431e633c88ff9a728aba514f97638d4f51a (patch)
treef00873ae4047cc13848a287b8d07756471648d6b /lib/ns.h
parentdaeca91f7c228eec8039563daf3ce023516282dc (diff)
all: remove logical-router functionality
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/ns.h')
-rw-r--r--lib/ns.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/ns.h b/lib/ns.h
index f3ad837889..1963b8a359 100644
--- a/lib/ns.h
+++ b/lib/ns.h
@@ -41,7 +41,7 @@ typedef uint32_t ns_id_t;
#ifdef HAVE_NETNS
#define NS_DEFAULT_NAME "/proc/self/ns/net"
#else /* !HAVE_NETNS */
-#define NS_DEFAULT_NAME "Default-logical-router"
+#define NS_DEFAULT_NAME "default-netns"
#endif /* HAVE_NETNS */
struct ns {
@@ -82,10 +82,10 @@ extern struct ns_head ns_tree;
* NS hooks
*/
-#define NS_NEW_HOOK 0 /* a new logical-router is just created */
-#define NS_DELETE_HOOK 1 /* a logical-router is to be deleted */
-#define NS_ENABLE_HOOK 2 /* a logical-router is ready to use */
-#define NS_DISABLE_HOOK 3 /* a logical-router is to be unusable */
+#define NS_NEW_HOOK 0 /* a new netns is just created */
+#define NS_DELETE_HOOK 1 /* a netns is to be deleted */
+#define NS_ENABLE_HOOK 2 /* a netns is ready to use */
+#define NS_DISABLE_HOOK 3 /* a netns is to be unusable */
/*
* Add a specific hook ns module.
@@ -128,7 +128,7 @@ extern void ns_walk_func(int (*func)(struct ns *));
extern const char *ns_get_name(struct ns *ns);
/* only called from vrf ( when removing netns from vrf)
- * or at VRF or logical router termination
+ * or at VRF termination
*/
extern void ns_delete(struct ns *ns);