0.90.[23] compile error tools/gen_ip.c
James Morris
jmorris@intercode.com.au
Wed, 1 Mar 2000 02:24:33 +1100 (EST)
On Wed, 1 Mar 2000, Pete Clements wrote:
> FYI:
> In both 0.90.2 and 0.90.3 had to define INT_MAX in tools/gen_ip.c
> to complete compile. This box is running a Debian 2.1 with kernel
> 2.3.48.
I noticed this problem tonight when moving from a RH6.1 to a RH6.0 box.
Try the following patch against 0.90.4:
diff -urN netfilter-0.90.4/tools/gen_ip.c netfilter-0.90.4-jm/tools/gen_ip.c
--- netfilter-0.90.4/tools/gen_ip.c Thu Feb 24 01:35:29 2000
+++ netfilter-0.90.4-jm/tools/gen_ip.c Wed Mar 1 01:42:16 2000
@@ -17,6 +17,7 @@
#include <linux/if_ether.h>
#endif
#include <sys/types.h>
+#include <limits.h>
static u_int16_t
csum_partial(void *buffer, unsigned int len, u_int16_t prevsum)
- James.
--
James Morris
<jmorris@intercode.com.au>