added charondebug config parameter to set debug level at startup
[strongswan.git] / src / starter / args.c
index 56b286b..5cf96ab 100644 (file)
@@ -86,10 +86,8 @@ static const char *LST_packetdefault[] = {
 
 static const char *LST_keyexchange[] = {
     "ike",
-#ifdef IKEV2
     "ikev1",
     "ikev2",
-#endif /* IKEV2 */
      NULL
 };
 
@@ -150,9 +148,12 @@ static const token_info_t token_info[] =
     /* config setup keywords */
     { ARG_LST,  offsetof(starter_config_t, setup.interfaces), NULL                 },
     { ARG_STR,  offsetof(starter_config_t, setup.dumpdir), NULL                    },
+    { ARG_ENUM, offsetof(starter_config_t, setup.charonstart), LST_bool            },
+    { ARG_ENUM, offsetof(starter_config_t, setup.plutostart), LST_bool             },
 
-    /* pluto keywords */
+    /* pluto/charon keywords */
     { ARG_LST,  offsetof(starter_config_t, setup.plutodebug), LST_plutodebug       },
+    { ARG_STR,  offsetof(starter_config_t, setup.charondebug),  NULL               },
     { ARG_STR,  offsetof(starter_config_t, setup.prepluto), NULL                   },
     { ARG_STR,  offsetof(starter_config_t, setup.postpluto), NULL                  },
     { ARG_ENUM, offsetof(starter_config_t, setup.uniqueids), LST_bool              },