12 #ifndef NETLINK_CACHE_API_H_
13 #define NETLINK_CACHE_API_H_
15 #include <netlink/netlink.h>
121 #define NL_ACT_MAX (__NL_ACT_MAX - 1)
123 #define END_OF_MSGTYPES_LIST { -1, -1, NULL }
152 #define END_OF_GROUP_LIST AF_UNSPEC, 0
188 struct nl_cache *co_major_cache;
Message type to cache action association.
char * mt_name
Name of operation for human-readable printing.
int mt_act
Cache action to take.
int ag_family
Address family.
int(* co_request_update)(struct nl_cache *, struct nl_handle *)
Called whenever an update of the cache is required.
Generic Netlink Operations.
int ag_group
Netlink group identifier.
int mt_id
Netlink message type.
int(* co_msg_parser)(struct nl_cache_ops *, struct sockaddr_nl *, struct nlmsghdr *, struct nl_parser_param *)
Called whenever a message was received that needs to be parsed.
Address family to netlink group association.