define NETLINK_NETFILTER if it's undefined
Pablo Neira
maintainerPATCH 1/2 define NETLINK_NETFILTER if it's undefined
Hi Harald,
This patch applies to libnfnetlink.
o It define NETLINK_NETFILTER if it's not defined.
o Kill KERNELDIR in Makefile.am, it's not set anymore.
Signature · 2 lines
The dawn of the fourth age of Linux firewalling is coming; a time of great struggle and heroic deeds -- J.Kadlecsik got inspired by J.Morris
libnfnetlink/libnfnetlink.h +6 -0
@@ -4,6 +4,8 @@* * 2005-10-29 Pablo Neira Ayuso <[email protected]>: * Fix NFNL_HEADER_LEN +* 2005-11-13 Pablo Neira Ayuso <[email protected]>: +* Define NETLINK_NETFILTER if it's undefined */ #ifndef __LIBNFNETLINK_H
@@ -18,6 +20,10 @@#include <linux/netlink.h> #include <libnfnetlink/linux_nfnetlink.h> +#ifndef NETLINK_NETFILTER +#define NETLINK_NETFILTER 12 +#endif +#define NLMSG_TAIL (nlh) \ (((void *) (nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))
Makefile.am +1 -1
@@ -2,7 +2,7 @@ #EXTRA_DIST = $(man_MANS) acinclude.m4 -INCLUDES = $(all_includes) -I$(top_srcdir)/include -I${KERNELDIR} +INCLUDES = $(all_includes) -I$(top_srcdir)/include AM_CFLAGS=-fPIC -Wall LIBS=
Harald Welte
AppliedQuoted 3 lines · Pablo Neira
Hi Harald,
This patch applies to libnfnetlink.
thanks, applied.
Signature · 5 lines
- Harald Welte <[email protected]> http://netfilter.org/ ============================================================================ "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie