summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorPavel Šimerda <psimerda@redhat.com>2013-03-27 22:23:24 +0100
committerPavel Šimerda <psimerda@redhat.com>2013-04-10 16:40:58 +0200
commit15fd7cd75ea2122a4fbf7af03051080adaff666c (patch)
tree41b643e4c9d81a2bfe79a35114774456b87c98ea /src/main.c
parentb530603019ec78e660079c0b6e025ba3064a3611 (diff)
downloadNetworkManager-15fd7cd75ea2122a4fbf7af03051080adaff666c.tar.gz
platform: link management
Create the new nm-platform framework and implement link (or interface) management. The nm-platform serves as the point of contact between the rest of NetworkManager and the operating system. There are two backends for nm-platform: * NMFakePlatform: Fake kernel backend for testing purposes * NMLinuxPlatform: Linux kernel backend for actual use A comprehensive testsuite is included and will be extended with new feature additions. To enable the Linux part of the testsuite, use --enable-tests=root configure options and run 'make check' as root. Use --enable-code-coverage for code coverage support. ./autogen.sh --enable-tests=root --enable-code-coverage make make -C src/platform check-code-coverage Link features: * Retrieve the list of links * Translate between indexes and names * Discover device type * Add/remove dummy interfaces (for testing) Thanks to Thomas Graf for helping with libnl3 synchronization issues.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 16f1834225..ed71bb62e6 100644
--- a/src/main.c
+++ b/src/main.c
@@ -42,6 +42,7 @@
#include "NetworkManagerUtils.h"
#include "nm-manager.h"
#include "nm-policy.h"
+#include "nm-linux-platform.h"
#include "nm-dns-manager.h"
#include "nm-dbus-manager.h"
#include "nm-supplicant-manager.h"
@@ -484,6 +485,9 @@ main (int argc, char *argv[])
main_loop = g_main_loop_new (NULL, FALSE);
+ /* Set up platform interaction layer */
+ nm_linux_platform_setup ();
+
/* Initialize our DBus service & connection */
dbus_mgr = nm_dbus_manager_get ();
g_assert (dbus_mgr != NULL);