invalid conversion from ‘void*’ to ‘nlattr*’ for nla_for_each_nested() in c++
Avery Rozar
avery.rozar at insecure-it.com
Thu Jul 21 05:10:03 PDT 2016
I'm using libnl3 and nl80211.h to get the available bands for a
connected wireless interface. My IDE (CLion) my hi-lights
“nla_for_each_nested()” red with the error incompatible pointer type
'nlattr *' and 'void *’.
When I compile my program I get this error.
error: invalid conversion from ‘void*’ to ‘nlattr*’ [-fpermissive] for
(pos = nla_data(nla), rem = nla_len(nla);
Thanks,
Avery
More information about the libnl
mailing list