How to cast a struct nl_object

Thomas Graf tgraf at infradead.org
Thu Mar 17 09:16:12 EDT 2011


On Thu, Mar 17, 2011 at 04:55:22AM -0700, Joerg Pommnitz wrote:
> Sorry, I feel rather stupid now. struct nl_object is actually a public type 
> defined
> in netlink-types.h. I was confused by the fact that "struct nl_object" is not 
> documented in the DocBook documentation on 
> http://www.infradead.org/~tgr/libnl/doc-2.0
> Please disregard my previous question.

The easiest way is to look at obj->ce_msgtype to see what kind of
message the object was derived from.

http://www.infradead.org/~tgr/libnl/doc-2.0/group__object__api.html

netlink-types.h is not part of the public API.



More information about the libnl mailing list