bugzilla-daemon at netfilter.org
2017-Jun-08 19:22 UTC
[Bug 1156] New: make macro mnl_attr_for_each_nested C++ friendly
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>
Apparently Analagous Threads
- Would centos 7 backport this libnl3 header fix
- [Bridge] [PATCH net-next 01/11] net: Add MDB net device operations
- [Bridge] [PATCH net-next v5] bridge: export multicast database via netlink
- [Bridge] [PATCH net-next v3] bridge: export multicast database via netlink
- [Bridge] [PATCH net-next 1/2] bridge: Add a limit on FDB entries
