<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:evil.function@proton.me" title="Eric Fahlgren <evil.function@proton.me>"> <span class="fn">Eric Fahlgren</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - Named sets - Use flags interval and dynamic"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1711">bug 1711</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>evil.function@proton.me
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Named sets - Use flags interval and dynamic"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1711#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Named sets - Use flags interval and dynamic"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1711">bug 1711</a>
from <span class="vcard"><a class="email" href="mailto:evil.function@proton.me" title="Eric Fahlgren <evil.function@proton.me>"> <span class="fn">Eric Fahlgren</span></a>
</span></b>
<pre>To the best of my knowledge, interval sets are implicitly dynamic (i.e., you
can add and delete elements arbitrarily). In order to change this behavior and
create a constant sized set, you'd state exactly that using the "constant"
flag:
$ nft add set ip filter FOO-N '{ type ipv4_addr; flags interval, constant;
elements = { 10.0.0.0/24 } }'
And then:
$ nft add element ip filter FOO-N '{ 100.1.1.0/24 }'
Error: Could not process rule: Too many open files in system
add element ip filter FOO-N { 100.1.1.0/24 }
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Leave out "constant" and the "add element" works just fine (as will "delete
element").</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>