Added ESP log group for libipsec log messages.
authorTobias Brunner <tobias@strongswan.org>
Wed, 28 Mar 2012 13:41:31 +0000 (15:41 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 8 Aug 2012 13:12:25 +0000 (15:12 +0200)
man/ipsec.conf.5.in
man/strongswan.conf.5.in
src/charon/charon.c
src/libstrongswan/debug.c
src/libstrongswan/debug.h
src/stroke/stroke.c

index 1f88761..ca77ee7 100644 (file)
@@ -1051,7 +1051,8 @@ A comma separated list containing type/level-pairs may
 be specified, e.g:
 .B dmn 3, ike 1, net -1.
 Acceptable values for types are
-.B dmn, mgr, ike, chd, job, cfg, knl, net, asn, enc, lib, tls, tnc, imc, imv, pts
+.B dmn, mgr, ike, chd, job, cfg, knl, net, asn, enc, lib, esp, tls,
+.B tnc, imc, imv, pts
 and the level is one of
 .B -1, 0, 1, 2, 3, 4
 (for silent, audit, control, controlmore, raw, private).  By default, the level
index ee8f8a8..4dd818b 100644 (file)
@@ -920,6 +920,9 @@ Packet encoding/decoding encryption/decryption operations
 .B tls
 libtls library messages
 .TP
+.B esp
+libipsec library messages
+.TP
 .B lib
 libstrongwan library messages
 .TP
index be4a954..bd36c72 100644 (file)
@@ -387,7 +387,7 @@ static void usage(const char *msg)
                                        "         [--version]\n"
                                        "         [--use-syslog]\n"
                                        "         [--debug-<type> <level>]\n"
-                                       "           <type>:  log context type (dmn|mgr|ike|chd|job|cfg|knl|net|asn|enc|tnc|imc|imv|pts|tls|lib)\n"
+                                       "           <type>:  log context type (dmn|mgr|ike|chd|job|cfg|knl|net|asn|enc|tnc|imc|imv|pts|tls|esp|lib)\n"
                                        "           <level>: log verbosity (-1 = silent, 0 = audit, 1 = control,\n"
                                        "                                    2 = controlmore, 3 = raw, 4 = private)\n"
                                        "\n"
@@ -466,6 +466,7 @@ int main(int argc, char *argv[])
                        { "debug-imv", required_argument, &group, DBG_IMV },
                        { "debug-pts", required_argument, &group, DBG_PTS },
                        { "debug-tls", required_argument, &group, DBG_TLS },
+                       { "debug-esp", required_argument, &group, DBG_ESP },
                        { "debug-lib", required_argument, &group, DBG_LIB },
                        { 0,0,0,0 }
                };
index 985ce6a..e8c9e6b 100644 (file)
@@ -34,6 +34,7 @@ ENUM(debug_names, DBG_DMN, DBG_LIB,
        "PTS",
        "TLS",
        "APP",
+       "ESP",
        "LIB",
 );
 
@@ -54,6 +55,7 @@ ENUM(debug_lower_names, DBG_DMN, DBG_LIB,
        "pts",
        "tls",
        "app",
+       "esp",
        "lib",
 );
 
index 65e55a6..ff4b4a1 100644 (file)
@@ -64,6 +64,8 @@ enum debug_t {
        DBG_TLS,
        /** applications other than daemons */
        DBG_APP,
+       /** libipsec */
+       DBG_ESP,
        /** libstrongswan */
        DBG_LIB,
        /** number of groups */
index 5dc7f04..03890b5 100644 (file)
@@ -407,7 +407,7 @@ static void exit_usage(char *error)
        printf("    where: START and optional END define the clients source IP\n");
        printf("  Set loglevel for a logging type:\n");
        printf("    stroke loglevel TYPE LEVEL\n");
-       printf("    where: TYPE is any|dmn|mgr|ike|chd|job|cfg|knl|net|asn|enc|tnc|imc|imv|pts|tls|lib\n");
+       printf("    where: TYPE is any|dmn|mgr|ike|chd|job|cfg|knl|net|asn|enc|tnc|imc|imv|pts|tls|esp|lib\n");
        printf("           LEVEL is -1|0|1|2|3|4\n");
        printf("  Show connection status:\n");
        printf("    stroke status\n");