nla_policy results in "sorry, unimplemented: non-trivial designated initializers not supported" during compile

David Ahern dsa at cumulusnetworks.com
Thu Jul 21 15:47:41 PDT 2016


On 7/21/16 3:52 PM, Avery Rozar wrote:
> Please forgive my ignorance but I'm fairly new to c++ coming from
> Python. I'm trying to build an nla_policy using the example here
> (http://www.infradead.org/~tgr/libnl/doc/core.html "6.5.2").
> What is ".type" referring to. Where is that defined? My IDE says it
> can not resolve it, and when I compile I get "sorry, unimplemented:
> non-trivial designated initializers not supported".
> From what I've seen this error seems to stem from using g++ vs gcc. Is
> this a c only example?

are you referring to this one?

struct nla_policy {
         /** Type of attribute or NLA_UNSPEC */
         uint16_t        type;

It is in include/netlink/attr.h as the values for the type, NLA_XXXXX



More information about the libnl mailing list