[205] in linux-net channel archive

home help back first fref pref prev next nref lref last post

ipfw not compiling (1.2.5)

daemon@ATHENA.MIT.EDU (Leonard N. Zubkoff)
Mon Apr 17 01:56:23 1995

Date: Sun, 16 Apr 1995 10:06:16 -0700
From: "Leonard N. Zubkoff" <lnz@dandelion.com>
To: kayvan@Sylvan.COM
Cc: herp@wildsau.idv.uni-linz.ac.at, linux-net@vger.rutgers.edu
In-Reply-To: Kayvan Sylvan's message of Sun, 16 Apr 95 00:24 PDT <m0s0Ogo-0004w2C@satyr.sylvan.com>

  Date: Sun, 16 Apr 95 00:24 PDT
  From: Kayvan Sylvan <kayvan@Sylvan.COM>

  >>>>> "Herbert" == Herbert Rosmanith <herp@wildsau.idv.uni-linz.ac.at> writes:

  Herbert> looks like the field-names in 1.2.5 kernel do not match those
  Herbert> from 1.1.79 net-tools.

  Try this patch. I got ipfw and the rest of net-tools to compile with
  this, though it's not extensively tested.

Wouldn't it be easier just to use a newer version of net-tools?  The version

  ftp.linux.org.uk
    /pub/misc/Linux/Networking/PROGRAMS/NetTools/net-tools-1.2.0-beta.tar.gz

works just fine except for the following minor patch:

--- ./net-tools-1.2.0/ipfw.c-	Tue Mar 28 10:57:02 1995
+++ ./net-tools-1.2.0/ipfw.c	Wed Apr  5 13:30:29 1995
@@ -1379,7 +1379,7 @@
 			exit(1);
 		}
 		sscanf(buf+14,"%d.%d.%d",&a,&b,&c);
-		if(a==1 || (a==2 && b==0))
+		if(b==1 || (b==2 && c==0))
 		{
 			fprintf(stderr,"Use Linux 1.2.1 or higher for firewalling.\n");
 			exit(1);

home help back first fref pref prev next nref lref last post