Displaying 1 result from an estimated 1 matches for "limit_mod".
Did you mean:
limit_mode
2018 Jan 10
14
[Bug 1214] New: Allow limit to use any value for time unit
...*str)) /* Starts with a non zero number */
*unit = (unsigned long long)strtol(str, NULL, 10);
else
return error(loc, "Wrong rate format");
return NULL;
}
The bison code should also be modified to allow number here:
limit_stmt : LIMIT RATE limit_mode NUM SLASH time_unit
limit_burst
{
$$ = limit_stmt_alloc(&@$);
$$->limit.rate = $4;
$$->limit.unit = $6;
$$->limit.burst = $7;
$$->limit.type = NFT_LIMIT_PKTS;...