<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:pablo@netfilter.org" title="Pablo Neira Ayuso <pablo@netfilter.org>"> <span class="fn">Pablo Neira Ayuso</span></a>
</span> changed
<a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - counter flag proposal for sets and maps"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1185">bug 1185</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;">Status</td>
<td>NEW
</td>
<td>ASSIGNED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - counter flag proposal for sets and maps"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1185#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - counter flag proposal for sets and maps"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1185">bug 1185</a>
from <span class="vcard"><a class="email" href="mailto:pablo@netfilter.org" title="Pablo Neira Ayuso <pablo@netfilter.org>"> <span class="fn">Pablo Neira Ayuso</span></a>
</span></b>
<pre>Hi Karel,
We can add something like this:
table x {
chain y {
...
map m {
type ipv4_addr . type ipv4_addr : counter;
}
map add @m { ip saddr . ip daddr : counter }
}
This would populate the map 'm' with entries whose keys are the 'ip saddr . ip
daddr' tuple, where each entry gets a counter.
The idea is that you can use the usual command:
nft list map x y
as well as any other existing map operations.
The double 'counter' above is a bit redundant, but we could use any stateful
object instead with its parameters, eg.
table x {
chain y {
...
map m {
type ipv4_addr : quota;
}
map add @m { ip saddr : quota 10 mbytes } accept
}
In this case, we can populate 'm' via different rules, that add different quota
policies.
Is this close to you would like to see in place?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>