patch-1.3.38 linux/net/ipv4/ipip.c

Next file: linux/net/ipv4/ipmr.c
Previous file: linux/net/ipv4/ip_output.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.37/linux/net/ipv4/ipip.c linux/net/ipv4/ipip.c
@@ -10,6 +10,7 @@
  *		Alan Cox	: 	Fixed bug with 1.3.18 and IPIP not working (now needs to set skb->h.iph)
  *					to keep ip_forward happy.
  *		Alan Cox	:	More fixes for 1.3.21, and firewall fix. Maybe this will work soon 8).
+ *		Kai Schulte	:	Fixed #defines for IP_FIREWALL->FIREWALL
  *
  *	This program is free software; you can redistribute it and/or
  *	modify it under the terms of the GNU General Public License
@@ -34,20 +35,11 @@
 #include <net/ipip.h>
 #include <linux/firewall.h>
 
-/*
- * NB. we must include the kernel idenfication string in to install the module.
- */
- 
-#if ( defined(CONFIG_NET_IPIP) && defined(CONFIG_IP_FORWARD)) || defined(MODULE)
-#ifdef MODULE
+#include <linux/config.h>
+
 #include <linux/module.h>
-#include <linux/version.h>
 
-static char kernel_version[] = UTS_RELEASE;
-#else
-#define MOD_INC_USE_COUNT
-#define MOD_DEC_USE_COUNT
-#endif 
+#if ( defined(CONFIG_NET_IPIP) && defined(CONFIG_IP_FORWARD)) || defined(MODULE)
 
 
 /*
@@ -63,7 +55,7 @@
 		__u32 daddr, unsigned short len, __u32 saddr,
                                    int redo, struct inet_protocol *protocol)
 {
-#ifdef CONFIG_IP_FIREWALL
+#ifdef CONFIG_FIREWALL
 	int err;
 #endif
 	/* Don't unlink in the middle of a turnaround */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this