<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 - Named sets with type "ipv4_addr" do not allow adding CIDR elements"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=994">994</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Named sets with type "ipv4_addr" do not allow adding CIDR elements
</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>other
</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>admin@rollinix.net
</td>
</tr></table>
<p>
<div>
<pre>Overview:
Attempting to add an element in CIDR notation to a named set with type
"ipv4_addr" fails with "nft: netlink.c:216: alloc_nft_setelem: Assertion
`expr->ops->type == EXPR_MAPPING' failed."
Steps to reproduce:
nft add set inet filter test { type ipv4_addr\; }
nft add element inet filter test { 10.0.0.1 }
nft add element inet filter test { 192.168.0.0/16 }
Actual result:
(Error) nft: netlink.c:216: alloc_nft_setelem: Assertion `expr->ops->type ==
EXPR_MAPPING' failed.
Aborted (core dumped)
Expected result:
Should be able to create a named set identical to the anonymous set in the
following command that works:
nft add rule inet filter test ip saddr { 10.0.0.1, 192.168.0.0/16 } counter</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>