[Bug 1214] Allow limit to use any value for time unit

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Sat Jan 27 16:11:30 CET 2018


https://bugzilla.netfilter.org/show_bug.cgi?id=1214

Cyril <boite.pour.spam at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #519 is|0                           |1
           obsolete|                            |

--- Comment #10 from Cyril <boite.pour.spam at gmail.com> ---
Created attachment 524
  --> https://bugzilla.netfilter.org/attachment.cgi?id=524&action=edit
Add support for period parsing

This follows option #3 in the previous comment:
It adds support for "limit 400/3 minute" or "235kbytes/6 day"

Please notice that this patch will only pass tests if the other patch is
applied to libnftnl.

While libnftnl is sharing the "get_unit" function (same code in both project),
I think it'll be better to rename and export the function to "get_period"
(since it's now a period and not just an unit anymore) so we can avoid code
duplication. This is not part of this bug though.

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20180127/03e658ac/attachment.html>


More information about the netfilter-buglog mailing list