12 #ifndef NETLINK_LINK_INFO_API_H_
13 #define NETLINK_LINK_INFO_API_H_
15 #include <netlink/netlink.h>
48 int (*
io_dump[NL_DUMP_MAX+1])(
struct rtnl_link *,
53 int (*
io_clone)(
struct rtnl_link *,
struct rtnl_link *);
int(* io_put_attrs)(struct nl_msg *, struct rtnl_link *)
Called when construction a link netlink message.
void(* io_free)(struct rtnl_link *)
Called to release all resources previously allocated in either io_alloc() or io_parse().
int(* io_parse)(struct rtnl_link *, struct nlattr *, struct nlattr *)
Called to parse the link info attribute.
int(* io_alloc)(struct rtnl_link *)
Called to assign an info type to a link.
int(* io_dump[NL_DUMP_MAX+1])(struct rtnl_link *, struct nl_dump_params *, int)
Called when the link object is dumped.
int io_refcnt
Reference count (internal, do not use)
int(* io_clone)(struct rtnl_link *, struct rtnl_link *)
Called when a link object is cloned.
char * io_name
Name of operations, must match name on kernel side.