]> git.proxmox.com Git - mirror_frr.git/commit - lib/ns.c
vrf: add a runtime check before playing with netns
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Thu, 3 Sep 2015 08:47:43 +0000 (10:47 +0200)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 9 Sep 2016 16:15:14 +0000 (12:15 -0400)
commitc253dcb5d80aa60112bb31ab95ae9839081064d3
tree3b2e993379f5b46394476897e2997fb76eae8159
parent13460c44a22415dd55846aca6fc31cf8607c90e9
vrf: add a runtime check before playing with netns

This patch adds a runtime check to determine if netns are available. Some
systems like OpenWRT have the system call setns() but don't have the kernel
option CONFIG_NET_NS enabled.

Reported-by: Christian Franke <chris@opensourcerouting.org>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Tested-by: Christian Franke <chris@opensourcerouting.org>
(cherry picked from commit 04a3aabf58d95d01c4c8168eeff43cf9d9892eee)
lib/ns.c
vtysh/vtysh_config.c