<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 - After adding map type ipv4_addr : counter it behaves as a set"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1352">1352</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>After adding map type ipv4_addr : counter it behaves as a set
</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>Debian GNU/Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</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>arturo@debian.org
</td>
</tr></table>
<p>
<div>
<pre>Original bug report: <a href="https://bugs.debian.org/931820">https://bugs.debian.org/931820</a>
(using nftables 0.9.1 and linux 4.19)
after adding following map to nftables
# nft add map inet filter countermap { type ipv4_addr : counter\; }
the ruleset is, as expected
# nft list ruleset
table inet filter {
map countermap {
type ipv4_addr : counter
}
}
but from now, you can't work with this as a map, but you have to use a
set. For example, when you run
# nft flush map inet filter countermap
Error: No such file or directory
flush map inet filter countermap
^^^^^^^^^^
you get an error, but it works with set keyword
# nft flush set inet filter countermap
It also doesn't appear in list of maps, but it's in list of sets...
# nft list maps
table inet filter {
}
# nft list sets
table inet filter {
map countermap {
type ipv4_addr : counter
}
}
Everything about this set/map work as expected, you can use it in rules
and it works...</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>