do not report increasing rekey times if rekeying currently active
This commit is contained in:
@@ -209,9 +209,16 @@ static void log_child_sa(FILE *out, child_sa_t *child_sa, bool all)
|
|||||||
|
|
||||||
rekey = child_sa->get_lifetime(child_sa, FALSE);
|
rekey = child_sa->get_lifetime(child_sa, FALSE);
|
||||||
if (rekey)
|
if (rekey)
|
||||||
|
{
|
||||||
|
if (now > rekey)
|
||||||
|
{
|
||||||
|
fprintf(out, "active");
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
fprintf(out, "in %V", &now, &rekey);
|
fprintf(out, "in %V", &now, &rekey);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fprintf(out, "disabled");
|
fprintf(out, "disabled");
|
||||||
|
|||||||
Reference in New Issue
Block a user