<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 - counter flag proposal for sets and maps"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1185">1185</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>counter flag proposal for sets and maps
          </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>karel@unitednetworks.cz
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Now when we have stateful objects, one can use map to emulate counting of hits
in set elements, but counters have to be created first.

It would be nice to have "counter" flag for sets and maps with similar function
as counters in rules, just to count packets and bytes hitting elements of set
or map. No need to list them as stateful object, just show them in set or map
listing.

I am aware that this behaviour can be emulated by combining set with flow table
with same keys in one rule, but having "counter" flags is more straightforward
and cleaner solution. Not to mention that counting hits in verdict maps cant be
easily emulated like that.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>