<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Interval should accept same start and end values as single value instead of throwing error"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1312">1312</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Interval should accept same start and end values as single value instead of throwing error
</td>
</tr>
<tr>
<th>Product</th>
<td>nftables
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86_64
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P5
</td>
</tr>
<tr>
<th>Component</th>
<td>nft
</td>
</tr>
<tr>
<th>Assignee</th>
<td>pablo@netfilter.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>anon.amish@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>