From owner-freebsd-ports@FreeBSD.ORG Wed Sep 14 15:09:39 2005 Return-Path: X-Original-To: ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0A2C416A41F for ; Wed, 14 Sep 2005 15:09:39 +0000 (GMT) (envelope-from scheidell@secnap.net) Received: from mail.secnap.net (mail.secnap.com [204.89.241.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F8D443D46 for ; Wed, 14 Sep 2005 15:09:38 +0000 (GMT) (envelope-from scheidell@secnap.net) Received: from [10.70.3.3] (unknown [10.70.3.3]) by mail.secnap.net (Postfix) with ESMTP id CDD772105; Wed, 14 Sep 2005 11:09:37 -0400 (EDT) Message-ID: <43283D32.2090707@secnap.net> Date: Wed, 14 Sep 2005 11:09:38 -0400 From: Michael Scheidell Organization: SECNAP Network Security User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: onatan@gmail.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ports@FreeBSD.org, mike@infonexus.com Subject: FreeBSD Port: firewalk-5.0_1 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Sep 2005 15:09:39 -0000 Two issues with Firewalk: on FREEBSD 4.x and 5.x if the old (non libnet-devel) is installed, you will have to manually deinstall it prior to firewalk including libnet-devel. If you don't, you will get this error: In file included from ../include/firewalk.h:42, from init.c:38: /usr/local/include/libnet.h:87: #error "byte order has not been specified, you'l l" In file included from ../include/firewalk.h:42, from init.c:38: /usr/local/include/libnet.h:88: syntax error before string constant *** Error code 1 once you deinstall libnet 1.0x, and then make install firewall, and firewall installss libnet 1.1x you get this: init.c: In function `fw_init_net': init.c:156: `BIOCIMMEDIATE' undeclared (first use in this function) init.c:156: (Each undeclared identifier is reported only once init.c:156: for each function it appears in.) patching include/firewalk.h to include bpf.h has its own problems, and won't compile. if you apply this patch, firewall will compile now: --- firewalk.h.orig Wed May 15 02:46:54 2002 +++ firewalk.h Wed Sep 14 10:55:52 2005 @@ -41,6 +41,10 @@ #include #include +#ifndef BIOCIMMEDIATE +#define BIOCIMMEDIATE _IOW('B',112, u_int) +#endif + #define FW_BANNER "Firewalk (c) 2002 Mike D. Schiffman \ \nhttp://www.packetfactory.net/firewalk\n\ for more information.\n" -- Michael Scheidell, CTO SECNAP Network Security 561-999-5000, x 1131