diff options
author | Philippe Guibert <philippe.guibert@6wind.com> | 2019-10-02 13:34:40 +0200 |
---|---|---|
committer | Philippe Guibert <philippe.guibert@6wind.com> | 2020-05-18 14:11:03 +0200 |
commit | 9d3555e06ccc68fe37e0a00100029ac4bad8dee2 (patch) | |
tree | 2d280fa3fda993385d84e074f0cb20b0aaab4fab /lib/ns.h | |
parent | zebra, lib: add an internal API to get relative default nsid in other ns (diff) | |
download | frr-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.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |