Merge branch 'enable-fragmentation'
[strongswan.git] / src / starter / netkey.c
index 6646195..b150d3e 100644 (file)
 #include <sys/stat.h>
 #include <stdlib.h>
 
-#include <freeswan.h>
-#include <hydra.h>
-
-#include "../pluto/constants.h"
-#include "../pluto/defs.h"
-#include "../pluto/log.h"
+#include <library.h>
+#include <utils/debug.h>
 
 #include "files.h"
 
-bool
-starter_netkey_init(void)
+bool starter_netkey_init(void)
 {
        struct stat stb;
 
@@ -41,9 +36,7 @@ starter_netkey_init(void)
                /* now test again */
                if (stat(PROC_NETKEY, &stb) != 0)
                {
-                       DBG(DBG_CONTROL,
-                               DBG_log("kernel appears to lack the native netkey IPsec stack")
-                       )
+                       DBG2(DBG_APP, "kernel appears to lack the native netkey IPsec stack");
                        return FALSE;
                }
        }
@@ -58,15 +51,6 @@ starter_netkey_init(void)
                ignore_result(system("modprobe -qv xfrm_user"));
        }
 
-       DBG(DBG_CONTROL,
-               DBG_log("Found netkey IPsec stack")
-       )
+       DBG2(DBG_APP, "found netkey IPsec stack");
        return TRUE;
 }
-
-void
-starter_netkey_cleanup(void)
-{
-       hydra->kernel_interface->flush_sas(hydra->kernel_interface);
-       hydra->kernel_interface->flush_policies(hydra->kernel_interface);
-}