summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2009-06-10 01:55:02 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2009-06-10 01:55:02 +0200
commitfa21ff22411bbbb226d3e18acf4a45cb38d8db0e (patch)
tree0a1689696c1d28214d55b56975ad0f1d25c2c282 /include
parent2114ff20f8dbc2845e7d75f3c404337c061ebca5 (diff)
include: add recently added Netlink socket options
This patch adds the definition of a couple of Netlink socket options that were included in 2.6.30. They are: * NETLINK_BROADCAST_SEND_ERROR * NETLINK_NO_ENOBUFS This patch also includes the definition of SOL_NETLINK which is required by set/getsockopt() that is declared in linux/socket.h. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/libnfnetlink/libnfnetlink.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/libnfnetlink/libnfnetlink.h b/include/libnfnetlink/libnfnetlink.h
index 935d903..b7f56e1 100644
--- a/include/libnfnetlink/libnfnetlink.h
+++ b/include/libnfnetlink/libnfnetlink.h
@@ -23,6 +23,18 @@
#define NETLINK_NETFILTER 12
#endif
+#ifndef SOL_NETLINK
+#define SOL_NETLINK 270
+#endif
+
+#ifndef NETLINK_BROADCAST_SEND_ERROR
+#define NETLINK_BROADCAST_SEND_ERROR 4
+#endif
+
+#ifndef NETLINK_NO_ENOBUFS
+#define NETLINK_NO_ENOBUFS 5
+#endif
+
#define NLMSG_TAIL(nlh) \
(((void *) (nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))