2.4.27-rc2: Compile error in net/ipv4/netfilter/ip_fw_compat_masq.c

From: Jan-Benedict Glaw
Date: Mon Jun 28 2004 - 09:57:52 EST


Hi!

I get this compile error:

gcc -D__KERNEL__ -I/home/jbglaw/kernel/linux-2.4.27-rc2-md/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i386 -DMODULE -nostdinc -iwithprefix include -DKBUILD_BASENAME=ip_fw_compat_masq -c -o ip_fw_compat_masq.o
ip_fw_compat_masq.c
ip_fw_compat_masq.c: In function `check_for_demasq':
ip_fw_compat_masq.c:157: `IP_OFFSET' undeclared (first use in this function)
ip_fw_compat_masq.c:157: (Each undeclared identifier is reported only once
ip_fw_compat_masq.c:157: for each function it appears in.)
make[2]: *** [ip_fw_compat_masq.o] Error 1
make[2]: Leaving directory `/home/jbglaw/kernel/linux-2.4.27-rc2-md/net/ipv4/netfilter'
make[1]: *** [_modsubdir_ipv4/netfilter] Error 2
make[1]: Leaving directory `/home/jbglaw/kernel/linux-2.4.27-rc2-md/net'
make: *** [_mod_net] Error 2

This patch fixes it:

--- linux-2.4.27-rc2-clean/net/ipv4/netfilter/ip_fw_compat_masq.c Mon Jan 5 14:53:56 2004
+++ linux-2.4.27-rc2-mod/net/ipv4/netfilter/ip_fw_compat_masq.c Mon Jun 28 16:48:28 2004
@@ -15,6 +15,7 @@
#include <linux/proc_fs.h>
#include <linux/version.h>
#include <linux/module.h>
+#include <net/ip.h>
#include <net/route.h>

#define ASSERT_READ_LOCK(x) MUST_BE_READ_LOCKED(&ip_conntrack_lock)


MfG, JBG

--
Jan-Benedict Glaw jbglaw@xxxxxxxxxx . +49-172-7608481
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg
fuer einen Freien Staat voll Freier Bürger" | im Internet! | im Irak!
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));

Attachment: signature.asc
Description: Digital signature