]> git.proxmox.com Git - mirror_frr.git/commit - zebra/if_netlink.c
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)
committerAnuradha Karuppiah <anuradhak@cumulusnetworks.com>
Tue, 18 Aug 2020 16:25:06 +0000 (09:25 -0700)
commitb1cc23b2cdaf70b279dfe53aa8ded6e2e6d3b1fd
treead7c4704c8c704cedf0480e3cc20f48e52b78469
parent20f4b2b0719e68e1f78d8e1a8f73d5f3c2de2418
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