<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body>
<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#c5">Comment # 5</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:karel@unitednetworks.cz" title="Karel Rericha <karel@unitednetworks.cz>"> <span class="fn">Karel Rericha</span></a>
</span></b>
<pre>(In reply to Pablo Neira Ayuso from <a href="show_bug.cgi?id=1185#c4">comment #4</a>)
<span class="quote">> (In reply to Karel Rericha from <a href="show_bug.cgi?id=1185#c3">comment #3</a>)
> > Actually on second thought I just want to know, how many times set or map
> > element was hit.
>
> I see. So it would be a global counter for this set/map that updated if an
> element lookup succeeds.
>
> Right?</span >
No, separate counter for each element. Definition could look like:
table x {
chain y {
...
set s {
type ipv4_addr . type ipv4_addr; flags counter;
}
map m {
type inet_service : ipv4_addr; flags counter;
}
}
}
Listing could look like (similar to listing of timeout flag):
table x y {
set s {
type ipv4_addr
elements = { 192.168.100.1 counter 5, 192.168.100.2 counter 0 }
}
}</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>