summaryrefslogtreecommitdiffstats
path: root/lib/ns.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2019-10-02 13:34:40 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2020-05-18 14:11:03 +0200
commit9d3555e06ccc68fe37e0a00100029ac4bad8dee2 (patch)
tree2d280fa3fda993385d84e074f0cb20b0aaab4fab /lib/ns.h
parentzebra, lib: add an internal API to get relative default nsid in other ns (diff)
downloadfrr-9d3555e06ccc68fe37e0a00100029ac4bad8dee2.tar.xz
frr-9d3555e06ccc68fe37e0a00100029ac4bad8dee2.zip
zebra, lib: store relative default ns id in each namespace
to be able to retrieve the network namespace identifier for each namespace, the ns id is stored in each ns context. For default namespace, the netns id is the same as that value. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'lib/ns.h')
-rw-r--r--lib/ns.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ns.h b/lib/ns.h
index c594cbfac..188161e11 100644
--- a/lib/ns.h
+++ b/lib/ns.h
@@ -53,6 +53,11 @@ struct ns {
/* Identifier, mapped on the NSID value */
ns_id_t internal_ns_id;
+ /* Identifier, value of NSID of default netns,
+ * relative value in that local netns
+ */
+ ns_id_t relative_default_ns;
+
/* Name */
char *name;