summaryrefslogtreecommitdiffstats
path: root/lib/ns.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2017-12-07 18:27:31 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2018-02-27 11:11:24 +0100
commit3347430b12ecccc4f03fb29111e9621a6e123b3c (patch)
treed3a7ce58f828c05cfb32d84f6342c59618932cf7 /lib/ns.h
parentlib: externalise vrf and ns creation (diff)
downloadfrr-3347430b12ecccc4f03fb29111e9621a6e123b3c.tar.xz
frr-3347430b12ecccc4f03fb29111e9621a6e123b3c.zip
zebra: add the registration mechanism for netns
If vrf backend is netns, then the zebra will create its own zebra_ns context for each new netns discovered. As consequence, a routing table, and other contexts will be created for each new namespace discovered. When it is enabled, a populate process will be done, consisting in learning new interfaces and routes, and addresses from other NETNS. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/ns.h')
-rw-r--r--lib/ns.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/ns.h b/lib/ns.h
index fda062e65..590e1f2c2 100644
--- a/lib/ns.h
+++ b/lib/ns.h
@@ -79,13 +79,12 @@ extern struct ns_head ns_tree;
* - param 2: the address of the user data pointer (the user data
* can be stored in or freed from there)
*/
-extern void ns_add_hook(int, int (*)(ns_id_t, void **));
+extern void ns_add_hook(int type, int (*)(struct ns *));
/*
* NS initializer/destructor
*/
-/* Please add hooks before calling ns_init(). */
-extern void ns_init(void);
+extern void ns_init_zebra(void);
extern void ns_terminate(void);
/*