bugzilla-daemon at netfilter.org
2018-Dec-23 05:49 UTC
[Bug 1312] New: Interval should accept same start and end values as single value instead of throwing error
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>
bugzilla-daemon at netfilter.org
2018-Dec-27 18:28 UTC
[Bug 1312] Interval should accept same start and end values as single value instead of throwing error
https://bugzilla.netfilter.org/show_bug.cgi?id=1312
Karuna Grewal <karunagrewal98 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |karunagrewal98 at gmail.com
--- Comment #1 from Karuna Grewal <karunagrewal98 at gmail.com> ---
Hi,
Can someone please confirm if the change is supported by the nftables devs?
I've a patch for the same.
Waiting for reply!
Thanks
/cc Pablo Neira Ayuso
--
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/20181227/265aea3f/attachment.html>
bugzilla-daemon at netfilter.org
2019-Jan-03 08:20 UTC
[Bug 1312] Interval should accept same start and end values as single value instead of throwing error
https://bugzilla.netfilter.org/show_bug.cgi?id=1312 --- Comment #2 from A M <anon.amish at gmail.com> --- (In reply to Karuna Grewal from comment #1)> I've a patch for the same.Please attach the patch to bug report. 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/20190103/fafdcfc5/attachment.html>
bugzilla-daemon at netfilter.org
2020-Jan-28 22:50 UTC
[Bug 1312] Interval should accept same start and end values as single value instead of throwing error
https://bugzilla.netfilter.org/show_bug.cgi?id=1312
kfm at plushkava.net changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kfm at plushkava.net
--
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/20200128/ac876260/attachment.html>
bugzilla-daemon at netfilter.org
2020-Aug-29 00:18 UTC
[Bug 1312] Interval should accept same start and end values as single value instead of throwing error
https://bugzilla.netfilter.org/show_bug.cgi?id=1312
kfm at plushkava.net changed:
What |Removed |Added
----------------------------------------------------------------------------
Blocks| |1461
--
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/20200829/49fce8ee/attachment.html>