[Bug 1312] New: Interval should accept same start and end values as single value instead of throwing error

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Sun Dec 23 06:49:12 CET 2018


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

            Bug ID: 1312
           Summary: Interval should accept same start and end values as
                    single value instead of throwing error
           Product: nftables
           Version: unspecified
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: nft
          Assignee: pablo at netfilter.org
          Reporter: anon.amish at gmail.com

When using a set with interval if start and end values (IP or port) are same
then nft throws an error.

$ nft -f -
add set ip filter test { type ipv4_addr; flags interval; elements = {
8.8.8.8-8.8.8.8 } }
/dev/stdin:1:70-84: Error: Range has zero or negative size

$ nft -f -
add set ip filter test { type inet_service; flags interval; elements = { 80-80
} } 
/dev/stdin:1:73-77: Error: Range has zero or negative size

Obviously range has exactly ONE ip or port. Its not zero or negative in size.

So nft should treat this as a single IP (or single port) instead of throwing
error. This helps scripting a bit easy, without need to check if start and end
values are same.

Please consider. Thank you.

-- 
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/20181223/bb86ebe2/attachment.html>


More information about the netfilter-buglog mailing list