1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
TP-Link_Archer-XR500v/EN7526G_3.18Kernel_SDK/apps/public/iproute2-4.4.0/include/libgenl.h
2024-07-22 01:58:46 -03:00

26 lines
628 B
C
Executable File

#ifndef __LIBGENL_H__
#define __LIBGENL_H__
#include "libnetlink.h"
#define GENL_REQUEST(_req, _bufsiz, _family, _hdrsiz, _ver, _cmd, _flags) \
struct { \
struct nlmsghdr n; \
struct genlmsghdr g; \
char buf[NLMSG_ALIGN(_hdrsiz) + (_bufsiz)]; \
} _req = { \
.n = { \
.nlmsg_type = (_family), \
.nlmsg_flags = (_flags), \
.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN + (_hdrsiz)), \
}, \
.g = { \
.cmd = (_cmd), \
.version = (_ver), \
}, \
}
extern int genl_resolve_family(struct rtnl_handle *grth, const char *family);
#endif /* __LIBGENL_H__ */