[Bug 1156] New: make macro mnl_attr_for_each_nested C++ friendly
bugzilla-daemon at netfilter.org
bugzilla-daemon at netfilter.org
Thu Jun 8 21:22:19 CEST 2017
https://bugzilla.netfilter.org/show_bug.cgi?id=1156
Bug ID: 1156
Summary: make macro mnl_attr_for_each_nested C++ friendly
Product: libmnl
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5
Component: libmnl
Assignee: pablo at netfilter.org
Reporter: yshragai.firmware at gmail.com
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:
https://github.com/thom311/libnl/commit/cdf2d4baf376e4a3030a2c1169516358b4fba2e5
--
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20170608/21a6932e/attachment.html>
More information about the netfilter-buglog
mailing list