From fa21ff22411bbbb226d3e18acf4a45cb38d8db0e Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 10 Jun 2009 01:55:02 +0200 Subject: 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 --- include/libnfnetlink/libnfnetlink.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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)) -- cgit v1.2.3