]> git.proxmox.com Git - mirror_iproute2.git/blame - include/libgenl.h
man: make sure tc man page gets installed
[mirror_iproute2.git] / include / libgenl.h
CommitLineData
8afcc288
JA
1#ifndef __LIBGENL_H__
2#define __LIBGENL_H__
3
4#include "libnetlink.h"
5
6#define GENL_REQUEST(_req, _hdrsiz, _bufsiz) \
7struct { \
8 struct nlmsghdr n; \
9 struct genlmsghdr g; \
10 char buf[NLMSG_ALIGN(_hdrsiz) + (_bufsiz)]; \
11} _req
12
13#define GENL_INITIALIZER(_family, _hdrsiz, _ver, _cmd, _flags) \
14 { \
15 .n = { \
16 .nlmsg_type = (_family), \
17 .nlmsg_flags = (_flags), \
18 .nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN + (_hdrsiz)), \
19 }, \
20 .g = { \
21 .cmd = (_cmd), \
22 .version = (_ver), \
23 }, \
24 }
25
26extern int genl_resolve_family(struct rtnl_handle *grth, const char *family);
27
28#endif /* __LIBGENL_H__ */