]> git.puffer.fish Git - mirror/frr.git/commit
zebra: upon NS creation, collect the NSID via netlink
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 7 Dec 2017 17:13:54 +0000 (18:13 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Tue, 27 Feb 2018 10:11:24 +0000 (11:11 +0100)
commit05895ad0be6c8fadcd895c3b1aa137b89791fbde
treee95a38dc4a41677efeed4a952c698e89a0cc27b3
parentce1be3692f809cfa4d533d484a75653f91c24c4e
zebra: upon NS creation, collect the NSID via netlink

A NS identifier is collected by netlink. This identifier is a 32 bit
identifier that is either generated by the kernel (if not set) or
manually set by a set netlink command. The commit here is getting the
NSID from the newly created NS. If the linux option to create or get a
new NSID from the kernel does not exist, then the NSID is locally
genrated.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
include/linux/net_namespace.h [new file with mode: 0644]
include/subdir.am
zebra/subdir.am
zebra/zebra_netns_id.c [new file with mode: 0644]
zebra/zebra_netns_id.h [new file with mode: 0644]