]> git.puffer.fish Git - mirror/frr.git/commit
zebra, lib: new API to get absolute netns val from relative netns val
authorPhilippe Guibert <philippe.guibert@6wind.com>
Wed, 2 Oct 2019 11:37:11 +0000 (13:37 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 21 Sep 2020 07:17:10 +0000 (09:17 +0200)
commitb9f03b58c4f591e5d1f4c8d587e81f2309a02bb8
tree18fa56c5ed0e434399bf781c390afe86f6743682
parent5eea262a68603baa9f6dbdb56db6100dd80cdf5d
zebra, lib: new API to get absolute netns val from relative netns val

when receiving a netlink API for an interface in a namespace, this
interface may come with LINK_NSID value, which means that the interface
has its link in an other namespace. Unfortunately, the link_nsid value
is self to that namespace, and there is a need to know what is its
associated nsid value from the default namespace point of view.
The information collected previously on each namespace, can then be
compared with that value to check if the link belongs to the default
namespace or not.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
lib/netns_linux.c
lib/ns.h
zebra/if_netlink.c