summaryrefslogtreecommitdiffstats
path: root/lib/ns.h
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2019-10-02 13:34:40 +0200
committerAnuradha Karuppiah <anuradhak@cumulusnetworks.com>2020-08-18 18:25:06 +0200
commit20f4b2b0719e68e1f78d8e1a8f73d5f3c2de2418 (patch)
treeac558dd1e8350b28bfceb74f6d7f1fac3b9ef840 /lib/ns.h
parentzebra, lib: add an internal API to get relative default nsid in other ns (diff)
downloadfrr-20f4b2b0719e68e1f78d8e1a8f73d5f3c2de2418.tar.xz
frr-20f4b2b0719e68e1f78d8e1a8f73d5f3c2de2418.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;