Refactor the netns and ipvrf code so less steps are needed to exec commands in a netns or a VRF context. Also remove some code which became dead. bloat-o-meter shows a tiny saving.
Matteo Croce (3): netns: switch netns in the child when executing commands ip vrf: use hook to change VRF in the child netns: make netns_{save,restore} static include/namespace.h | 2 -- include/utils.h | 6 ++--- ip/ip.c | 1 - ip/ipnetns.c | 61 ++++++++++++++++++++++++++++++++++----------- ip/ipvrf.c | 12 ++++++--- lib/exec.c | 7 +++++- lib/namespace.c | 31 ----------------------- lib/utils.c | 27 -------------------- 8 files changed, 63 insertions(+), 84 deletions(-) -- 2.21.0