search for: time_unit_parse

Displaying 1 result from an estimated 1 matches for "time_unit_parse".

2018 Jan 10
14
[Bug 1214] New: Allow limit to use any value for time unit
...d unit is converted to seconds in http://git.netfilter.org/nftables/tree/src/datatype.c#n1074 , so it should be possible to change: "limit 10/mn" to "limit 10/300" (or "limit 10/300s") This would require an additional line in the code from: static struct error_record *time_unit_parse(const struct location *loc, const char *str, uint64_t *unit) { if (strcmp(str, "second") == 0) *unit = 1ULL; else if (strcmp(str, "minute") == 0) *unit = 1ULL * 60; else if (strcmp(str, "hour") == 0) *unit = 1...