diff -rupN IPTables-IPv4-0.98.orig/Makefile.PL IPTables-IPv4-0.98.new/Makefile.PL --- IPTables-IPv4-0.98.orig/Makefile.PL 2009-05-26 15:31:06.000000000 +0100 +++ IPTables-IPv4-0.98.new/Makefile.PL 2009-05-26 15:33:27.000000000 +0100 @@ -80,7 +80,7 @@ WriteMakefile( 'VERSION_FROM' => 'IPv4.pm', # finds $VERSION 'OBJECT' => 'IPv4.o loader.o packer.o unpacker.o maskgen.o libiptc/libiptc.a', 'INC' => '-Iinclude -I/usr/src/linux/include', - 'CCFLAGS' => "-Wall -DMODULE_PATH=\\\"$moduledir\\\"" . (defined $Config{'use64bitint'} ? " -DPERL_USES_64BIT_INT" : ""), + 'CCFLAGS' => "-Wall -Dip_nat_range=nf_nat_range -Dip_nat_multi_range=nf_nat_multi_range -DMODULE_PATH=\\\"$moduledir\\\"" . (defined $Config{'use64bitint'} ? " -DPERL_USES_64BIT_INT" : ""), 'TYPEMAPS' => ['IPTables.typemap'], 'XSPROTOARG' => '-noprototypes', ); diff -rupN IPTables-IPv4-0.98.orig/modules/ipt_pl_DNAT.c IPTables-IPv4-0.98.new/modules/ipt_pl_DNAT.c --- IPTables-IPv4-0.98.orig/modules/ipt_pl_DNAT.c 2009-05-26 15:31:06.000000000 +0100 +++ IPTables-IPv4-0.98.new/modules/ipt_pl_DNAT.c 2009-05-26 15:33:27.000000000 +0100 @@ -8,7 +8,7 @@ #include #include #include -#include +#include #include #include diff -rupN IPTables-IPv4-0.98.orig/modules/ipt_pl_iplimit.c IPTables-IPv4-0.98.new/modules/ipt_pl_iplimit.c --- IPTables-IPv4-0.98.orig/modules/ipt_pl_iplimit.c 2009-05-26 15:31:06.000000000 +0100 +++ IPTables-IPv4-0.98.new/modules/ipt_pl_iplimit.c 2009-05-26 15:37:01.000000000 +0100 @@ -6,7 +6,7 @@ #include "../module_iface.h" #include #include -#include +#include #include #include diff -rupN IPTables-IPv4-0.98.orig/modules/ipt_pl_MASQUERADE.c IPTables-IPv4-0.98.new/modules/ipt_pl_MASQUERADE.c --- IPTables-IPv4-0.98.orig/modules/ipt_pl_MASQUERADE.c 2009-05-26 15:31:06.000000000 +0100 +++ IPTables-IPv4-0.98.new/modules/ipt_pl_MASQUERADE.c 2009-05-26 15:33:27.000000000 +0100 @@ -8,7 +8,7 @@ #include #include #include -#include +#include #include static void setup(void *myinfo, unsigned int *nfcache) { diff -rupN IPTables-IPv4-0.98.orig/modules/ipt_pl_REDIRECT.c IPTables-IPv4-0.98.new/modules/ipt_pl_REDIRECT.c --- IPTables-IPv4-0.98.orig/modules/ipt_pl_REDIRECT.c 2009-05-26 15:31:06.000000000 +0100 +++ IPTables-IPv4-0.98.new/modules/ipt_pl_REDIRECT.c 2009-05-26 15:33:27.000000000 +0100 @@ -8,7 +8,7 @@ #include #include #include -#include +#include #include static void setup(void *myinfo, unsigned int *nfcache) { diff -rupN IPTables-IPv4-0.98.orig/modules/ipt_pl_SNAT.c IPTables-IPv4-0.98.new/modules/ipt_pl_SNAT.c --- IPTables-IPv4-0.98.orig/modules/ipt_pl_SNAT.c 2009-05-26 15:31:06.000000000 +0100 +++ IPTables-IPv4-0.98.new/modules/ipt_pl_SNAT.c 2009-05-26 15:33:27.000000000 +0100 @@ -8,7 +8,7 @@ #include #include #include -#include +#include #include #include diff -rupN IPTables-IPv4-0.98.orig/modules/ipt_pl_state.c IPTables-IPv4-0.98.new/modules/ipt_pl_state.c --- IPTables-IPv4-0.98.orig/modules/ipt_pl_state.c 2009-05-26 15:31:06.000000000 +0100 +++ IPTables-IPv4-0.98.new/modules/ipt_pl_state.c 2009-05-26 15:37:20.000000000 +0100 @@ -7,7 +7,7 @@ #include #include #include -#include +#include static void setup(void *myinfo, unsigned int *nfcache) { *nfcache |= NFC_UNKNOWN; diff -rupN IPTables-IPv4-0.98.orig/modules/Makefile IPTables-IPv4-0.98.new/modules/Makefile --- IPTables-IPv4-0.98.orig/modules/Makefile 2009-05-26 15:31:06.000000000 +0100 +++ IPTables-IPv4-0.98.new/modules/Makefile 2009-05-26 15:36:33.000000000 +0100 @@ -16,7 +16,7 @@ ifndef INSTALL_DIR INSTALL_DIR := $(INSTALL_BASE)/lib/IPTables-IPv4 endif -CFLAGS := -I$(KERNEL_INC) -I$(NF_INC) -I$(PERL_INC) -I.. -Wall -O2 -Wundef +CFLAGS := -I$(KERNEL_INC) -I$(NF_INC) -I$(PERL_INC) -I.. -Wall -O2 -Wundef -Dip_nat_range=nf_nat_range -Dip_nat_multi_range=nf_nat_multi_range # Basic protocol modules for IPTables::IPv4 MODULE_NAMES := icmp tcp udp ah esp