commit | 04a3aabf58d95d01c4c8168eeff43cf9d9892eee | [log] [tgz] |
---|---|---|
author | Nicolas Dichtel <nicolas.dichtel@6wind.com> | Thu Sep 03 10:47:43 2015 +0200 |
committer | Paul Jakma <paul@quagga.net> | Thu Sep 24 15:26:45 2015 +0100 |
tree | c810fdc3ff48d185bb34ce73e986a2c88da3780f | |
parent | 0bc874b88cf86fca4b18f3672a441ed142fc499d [diff] |
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>