ipsec-types: Support the %unique mark value
This commit is contained in:
@@ -48,7 +48,15 @@ bool mark_from_string(const char *value, mark_t *mark)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
mark->value = strtoul(value, &endptr, 0);
|
||||
if (strcasepfx(value, "%unique"))
|
||||
{
|
||||
mark->value = MARK_UNIQUE;
|
||||
endptr = (char*)value + strlen("%unique");
|
||||
}
|
||||
else
|
||||
{
|
||||
mark->value = strtoul(value, &endptr, 0);
|
||||
}
|
||||
if (*endptr)
|
||||
{
|
||||
if (*endptr != '/')
|
||||
|
||||
Reference in New Issue
Block a user