12 #ifndef NETLINK_NETLINK_H_
13 #define NETLINK_NETLINK_H_
20 #include <sys/socket.h>
21 #include <sys/types.h>
24 #include <netlink/netlink-compat.h>
25 #include <linux/netlink.h>
26 #include <linux/rtnetlink.h>
27 #include <linux/genetlink.h>
28 #include <linux/netfilter/nfnetlink.h>
29 #include <netlink/version.h>
30 #include <netlink/errno.h>
31 #include <netlink/types.h>
32 #include <netlink/handlers.h>
33 #include <netlink/socket.h>
34 #include <netlink/object.h>
35 #include <netlink/cache-api.h>
48 extern void nl_close(
struct nl_sock *);
51 extern int nl_sendto(
struct nl_sock *,
void *,
size_t);
52 extern int nl_sendmsg(
struct nl_sock *,
struct nl_msg *,
54 extern int nl_send(
struct nl_sock *,
struct nl_msg *);
56 struct iovec *,
unsigned);
57 extern void nl_complete_msg(
struct nl_sock *,
59 extern void nl_auto_complete(
struct nl_sock *,
61 extern int nl_send_auto(
struct nl_sock *,
struct nl_msg *);
62 extern int nl_send_auto_complete(
struct nl_sock *,
64 extern int nl_send_sync(
struct nl_sock *,
struct nl_msg *);
69 extern int nl_recv(
struct nl_sock *,
70 struct sockaddr_nl *,
unsigned char **,
73 extern int nl_recvmsgs(
struct nl_sock *,
struct nl_cb *);
86 extern char * nl_nlfamily2str(
int,
char *,
size_t);
87 extern int nl_str2nlfamily(
const char *);