]> git.proxmox.com Git - mirror_iproute2.git/commit
lib: Add netns_switch func for change network namespace
authorVadim Kochan <vadim4j@gmail.com>
Wed, 24 Dec 2014 21:04:08 +0000 (23:04 +0200)
committerStephen Hemminger <shemming@brocade.com>
Sat, 27 Dec 2014 18:22:27 +0000 (10:22 -0800)
commiteb67e4498aec35eb16eaf894329f85b6316dabe8
tree4a1edec7f74213c3e393dcd6b520b1ace7c92e69
parent486ccd99a0b4f4d2c58546264280f1a884aa0c10
lib: Add netns_switch func for change network namespace

New netns_switch func moved to the lib/namespace.c from ip/ipnetns.c
so it can be used from the other tools for fast switching
network namespace.

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
include/namespace.h [new file with mode: 0644]
ip/ipnetns.c
lib/Makefile
lib/namespace.c [new file with mode: 0644]