Added a tfc ipsec.conf keyword to control Traffic Flow Confidentiality

This commit is contained in:
Martin Willi
2010-12-20 09:45:39 +01:00
parent 55df72e6d5
commit 6c302616f1
9 changed files with 32 additions and 2 deletions
+17
View File
@@ -705,6 +705,23 @@ static void load_conn(starter_conn_t *conn, kw_list_t *kw, starter_config_t *cfg
cfg->err++;
}
break;
case KW_TFC:
if (streq(kw->value, "%mtu"))
{
conn->tfc = -1;
}
else
{
char *endptr;
conn->tfc = strtoul(kw->value, &endptr, 10);
if (*endptr != '\0')
{
plog("# bad integer value: %s=%s", kw->entry->name, kw->value);
cfg->err++;
}
}
break;
case KW_KEYINGTRIES:
if (streq(kw->value, "%forever"))
{