]>
git.proxmox.com Git - mirror_iproute2.git/blob - include/libgenl.h
1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include "libnetlink.h"
7 #define GENL_REQUEST(_req, _bufsiz, _family, _hdrsiz, _ver, _cmd, _flags) \
10 struct genlmsghdr g; \
11 char buf[NLMSG_ALIGN(_hdrsiz) + (_bufsiz)]; \
14 .nlmsg_type = (_family), \
15 .nlmsg_flags = (_flags), \
16 .nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN + (_hdrsiz)), \
24 extern int genl_resolve_family(struct rtnl_handle
*grth
, const char *family
);
25 extern int genl_init_handle(struct rtnl_handle
*grth
, const char *family
,
28 #endif /* __LIBGENL_H__ */