mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-08 00:02:03 -04:00
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:
|
be specified, e.g:
|
||||||
.B dmn 3, ike 1, net -1.
|
.B dmn 3, ike 1, net -1.
|
||||||
Acceptable values for types are
|
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
|
and the level is one of
|
||||||
.B -1, 0, 1, 2, 3, 4
|
.B -1, 0, 1, 2, 3, 4
|
||||||
(for silent, audit, control, controlmore, raw, private). By default, the level
|
(for silent, audit, control, controlmore, raw, private). By default, the level
|
||||||
|
@ -920,6 +920,9 @@ Packet encoding/decoding encryption/decryption operations
|
|||||||
.B tls
|
.B tls
|
||||||
libtls library messages
|
libtls library messages
|
||||||
.TP
|
.TP
|
||||||
|
.B esp
|
||||||
|
libipsec library messages
|
||||||
|
.TP
|
||||||
.B lib
|
.B lib
|
||||||
libstrongwan library messages
|
libstrongwan library messages
|
||||||
.TP
|
.TP
|
||||||
|
@ -387,7 +387,7 @@ static void usage(const char *msg)
|
|||||||
" [--version]\n"
|
" [--version]\n"
|
||||||
" [--use-syslog]\n"
|
" [--use-syslog]\n"
|
||||||
" [--debug-<type> <level>]\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"
|
" <level>: log verbosity (-1 = silent, 0 = audit, 1 = control,\n"
|
||||||
" 2 = controlmore, 3 = raw, 4 = private)\n"
|
" 2 = controlmore, 3 = raw, 4 = private)\n"
|
||||||
"\n"
|
"\n"
|
||||||
@ -466,6 +466,7 @@ int main(int argc, char *argv[])
|
|||||||
{ "debug-imv", required_argument, &group, DBG_IMV },
|
{ "debug-imv", required_argument, &group, DBG_IMV },
|
||||||
{ "debug-pts", required_argument, &group, DBG_PTS },
|
{ "debug-pts", required_argument, &group, DBG_PTS },
|
||||||
{ "debug-tls", required_argument, &group, DBG_TLS },
|
{ "debug-tls", required_argument, &group, DBG_TLS },
|
||||||
|
{ "debug-esp", required_argument, &group, DBG_ESP },
|
||||||
{ "debug-lib", required_argument, &group, DBG_LIB },
|
{ "debug-lib", required_argument, &group, DBG_LIB },
|
||||||
{ 0,0,0,0 }
|
{ 0,0,0,0 }
|
||||||
};
|
};
|
||||||
|
@ -34,6 +34,7 @@ ENUM(debug_names, DBG_DMN, DBG_LIB,
|
|||||||
"PTS",
|
"PTS",
|
||||||
"TLS",
|
"TLS",
|
||||||
"APP",
|
"APP",
|
||||||
|
"ESP",
|
||||||
"LIB",
|
"LIB",
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -54,6 +55,7 @@ ENUM(debug_lower_names, DBG_DMN, DBG_LIB,
|
|||||||
"pts",
|
"pts",
|
||||||
"tls",
|
"tls",
|
||||||
"app",
|
"app",
|
||||||
|
"esp",
|
||||||
"lib",
|
"lib",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -64,6 +64,8 @@ enum debug_t {
|
|||||||
DBG_TLS,
|
DBG_TLS,
|
||||||
/** applications other than daemons */
|
/** applications other than daemons */
|
||||||
DBG_APP,
|
DBG_APP,
|
||||||
|
/** libipsec */
|
||||||
|
DBG_ESP,
|
||||||
/** libstrongswan */
|
/** libstrongswan */
|
||||||
DBG_LIB,
|
DBG_LIB,
|
||||||
/** number of groups */
|
/** 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(" where: START and optional END define the clients source IP\n");
|
||||||
printf(" Set loglevel for a logging type:\n");
|
printf(" Set loglevel for a logging type:\n");
|
||||||
printf(" stroke loglevel TYPE LEVEL\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(" LEVEL is -1|0|1|2|3|4\n");
|
||||||
printf(" Show connection status:\n");
|
printf(" Show connection status:\n");
|
||||||
printf(" stroke status\n");
|
printf(" stroke status\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user