Added ESP log group for libipsec log messages.
This commit is contained in:
parent
75f8316332
commit
56d07af3be
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 }
|
||||
};
|
||||
|
|
|
@ -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",
|
||||
);
|
||||
|
||||
|
|
|
@ -64,6 +64,8 @@ enum debug_t {
|
|||
DBG_TLS,
|
||||
/** applications other than daemons */
|
||||
DBG_APP,
|
||||
/** libipsec */
|
||||
DBG_ESP,
|
||||
/** libstrongswan */
|
||||
DBG_LIB,
|
||||
/** number of groups */
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue