NetworkManager/src/platform/tests
Thomas Haller c7b3862503 platform: add network namespace support to platform
Add a new NMPNetns class. This allows creation, deletion and
switching of network namespaces. The API only offers push/pop
operations to switch the namespace. This way the API enforces
the user to always restore the previous namespace.

A NMPlatform instance not only uses the netlink socket, but also
sysfs, udev, ethtool, mii. Still, a NMPlatform instance lives
entirely inside one namespace and is not spanning multiple namespaces.
To properly support network namespaces, the platform instance must
switch the namespace as necessary, transparent to the caller.
Udev is only supported in the main namespace.

For now, network namespaces are not actually used and are disabled
via the NM_PLATFORM_NETNS_SUPPORT argument.

https://bugzilla.gnome.org/show_bug.cgi?id=762408
2016-03-07 12:28:13 +01:00
..
.gitignore platform: add nmp-object.h file 2015-06-17 11:23:51 +02:00
Makefile.am build: rename directory "include" to "shared" 2015-12-24 11:42:37 +01:00
monitor.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
test-address.c platform: add flags argument to nm_platform_ip4_address_add() 2016-03-01 15:09:16 +01:00
test-cleanup.c platform: add flags argument to nm_platform_ip4_address_add() 2016-03-01 15:09:16 +01:00
test-common.c platform: add flags argument to nm_platform_ip4_address_add() 2016-03-01 15:09:16 +01:00
test-common.h platform: add flags argument to nm_platform_ip4_address_add() 2016-03-01 15:09:16 +01:00
test-general.c platform: don't create udev client if udev isn't used 2016-03-07 11:58:01 +01:00
test-link.c platform: add network namespace support to platform 2016-03-07 12:28:13 +01:00
test-nmp-object.c platform: don't create udev client if udev isn't used 2016-03-07 11:58:01 +01:00
test-route.c core: split "nm-core-utils.h" out of "NetworkManagerUtils.h" 2016-03-01 12:42:42 +01:00