chiark / gitweb /
networkd: introduce ipip tunnel
[elogind.git] / src / network / networkd-manager.c
index 8bdc60f19c980dd940a3820a9ece37f6757d1ba4..cfa3a9900a61a095e3616a8b013e51870cd47ddc 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <resolv.h>
 #include <linux/if.h>
+#include <libkmod.h>
 
 #include "path-util.h"
 #include "networkd.h"
@@ -551,3 +552,18 @@ finish:
 
         return r;
 }
+
+int manager_init_kmod_ctx(Manager *m) {
+        struct kmod_ctx *ctx;
+
+        assert(m);
+
+        ctx = kmod_new(NULL, NULL);
+        if (!ctx) {
+                return -ENOMEM;
+        }
+
+        m->kmod_ctx = ctx;
+
+        return 0;
+}