<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 - make macro mnl_attr_for_each_nested C++ friendly"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1156">1156</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>make macro mnl_attr_for_each_nested C++ friendly
</td>
</tr>
<tr>
<th>Product</th>
<td>libmnl
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</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>libmnl
</td>
</tr>
<tr>
<th>Assignee</th>
<td>pablo@netfilter.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>yshragai.firmware@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Macro mnl_attr_for_each_nested contains a conversion from void* to struct
nlattr*. (It contains a call to mnl_attr_get_payload(), which returns void*;
the result is assigned to arg0 of the macro, which is struct nlattr*.)
Therefore, C++ compilation fails. (g++ throws "error: invalid conversion from
‘void*’ to ‘const nlattr*’.")
This is similar to the issue with macro nla_for_each_nested in libnl, that has
been fixed by adding a cast:
<a href="https://github.com/thom311/libnl/commit/cdf2d4baf376e4a3030a2c1169516358b4fba2e5">https://github.com/thom311/libnl/commit/cdf2d4baf376e4a3030a2c1169516358b4fba2e5</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>