controller: Add parameter for maximum log level to initiate/terminate_*()
Previously, the logger installed by the controller always announced LEVEL_PRIVATE(4), which produced completely useless logging calls with the common clients (vici/stroke) whose default log level is LEVEL_CTRL(1). This can produce quite some overhead if there are e.g. a lot of concurrent initiate() calls.
This commit is contained in:
1 parent
77b9f3abb0
commit
d96d15b588
18 files changed
+60
-46
No files matched your search
@@ -66,7 +66,7 @@ static job_requeue_t initiate(char *config)
|
||||
{
|
||||
DBG1(DBG_CFG, "initiating IKE_SA for CHILD_SA config '%s'", config);
|
||||
charon->controller->initiate(charon->controller, peer_cfg, child_cfg,
|
||||
NULL, NULL, 0, FALSE);
|
||||
NULL, NULL, 0, 0, FALSE);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -211,7 +211,7 @@ static job_requeue_t close_ike(char *config)
|
||||
{
|
||||
DBG1(DBG_CFG, "closing IKE_SA '%s'", config);
|
||||
charon->controller->terminate_ike(charon->controller, id, FALSE, NULL,
|
||||
NULL, 0);
|
||||
NULL, 0, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -251,7 +251,7 @@ static job_requeue_t close_child(char *config)
|
||||
{
|
||||
DBG1(DBG_CFG, "closing CHILD_SA '%s'", config);
|
||||
charon->controller->terminate_child(charon->controller, id,
|
||||
NULL, NULL, 0);
|
||||
NULL, NULL, 0, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user