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 <netinet/tcp.h>
30 #include <netlink/version.h>
31 #include <netlink/errno.h>
32 #include <netlink/types.h>
33 #include <netlink/handlers.h>
34 #include <netlink/socket.h>
35 #include <netlink/object.h>
43 struct nl_parser_param;
52 extern void nl_close(
struct nl_sock *);
55 extern int nl_sendto(
struct nl_sock *,
void *,
size_t);
56 extern int nl_sendmsg(
struct nl_sock *,
struct nl_msg *,
58 extern int nl_send(
struct nl_sock *,
struct nl_msg *);
60 struct iovec *,
unsigned);
65 extern int nl_send_auto(
struct nl_sock *,
struct nl_msg *);
68 extern int nl_send_sync(
struct nl_sock *,
struct nl_msg *);
73 extern int nl_recv(
struct nl_sock *,
74 struct sockaddr_nl *,
unsigned char **,
77 extern int nl_recvmsgs(
struct nl_sock *,
struct nl_cb *);
85 int (*parser)(
struct nl_cache_ops *,
88 struct nl_parser_param *),
91 extern char * nl_nlfamily2str(
int,
char *,
size_t);
92 extern int nl_str2nlfamily(
const char *);