[libnfnetlink] nfnl: add nfnl_addattr8() function
Pablo Neira
netfilter-cvslog-bounces at lists.netfilter.org
Thu Jun 11 16:49:30 CEST 2009
Gitweb: http://git.netfilter.org/cgi-bin/gitweb.cgi?p=libnfnetlink.git;a=commit;h=8bdef47e4cfa16f87ed503af066d00ff2d5a0366
commit 8bdef47e4cfa16f87ed503af066d00ff2d5a0366
Author: Pablo Neira Ayuso <pablo at netfilter.org>
AuthorDate: Thu Jun 11 16:47:40 2009 +0200
Commit: Pablo Neira Ayuso <pablo at netfilter.org>
CommitDate: Thu Jun 11 16:47:40 2009 +0200
nfnl: add nfnl_addattr8() function
This patch adds the function nfnl_addattr8() as it has been requested
by Jozsef Kadlecsik, he needs it for his Netlink-port of ipset.
Signed-off-by: Pablo Neira Ayuso <pablo at netfilter.org>
commit fa21ff22411bbbb226d3e18acf4a45cb38d8db0e
Author: Pablo Neira Ayuso <pablo at netfilter.org>
AuthorDate: Wed Jun 10 01:55:02 2009 +0200
Commit: Pablo Neira Ayuso <pablo at netfilter.org>
CommitDate: Wed Jun 10 01:55:02 2009 +0200
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 at netfilter.org>
via 8bdef47e4cfa16f87ed503af066d00ff2d5a0366 (commit)
via fa21ff22411bbbb226d3e18acf4a45cb38d8db0e (commit)
from 2114ff20f8dbc2845e7d75f3c404337c061ebca5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 8bdef47e4cfa16f87ed503af066d00ff2d5a0366
Author: Pablo Neira Ayuso <pablo at netfilter.org>
Date: Thu Jun 11 16:47:40 2009 +0200
nfnl: add nfnl_addattr8() function
This patch adds the function nfnl_addattr8() as it has been requested
by Jozsef Kadlecsik, he needs it for his Netlink-port of ipset.
Signed-off-by: Pablo Neira Ayuso <pablo at netfilter.org>
commit fa21ff22411bbbb226d3e18acf4a45cb38d8db0e
Author: Pablo Neira Ayuso <pablo at netfilter.org>
Date: Wed Jun 10 01:55:02 2009 +0200
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 at netfilter.org>
-----------------------------------------------------------------------
include/libnfnetlink/libnfnetlink.h | 13 +++++++++++++
src/libnfnetlink.c | 17 +++++++++++++++++
2 files changed, 30 insertions(+), 0 deletions(-)
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 at netfilter.org>
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))
More information about the netfilter-cvslog
mailing list