From owner-freebsd-stable@FreeBSD.ORG Thu May 12 19:26:15 2005 Return-Path: Delivered-To: freebsd-stable@www.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E540716A4CE for ; Thu, 12 May 2005 19:26:15 +0000 (GMT) Received: from mail.sbb.co.yu (mail.sbb.co.yu [82.117.194.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id CEF4C43D5D for ; Thu, 12 May 2005 19:26:14 +0000 (GMT) (envelope-from ggajic@sbb.co.yu) Received: from mail.sbb.co.yu (mail.sbb.co.yu [192.168.1.2] (may be forged)) by mail.sbb.co.yu (8.13.3/8.13.3) with ESMTP id j4CJQCUM049211 for ; Thu, 12 May 2005 21:26:12 +0200 (CEST) Date: Thu, 12 May 2005 21:26:12 +0200 (CEST) From: Goran Gajic To: freebsd-stable@www.freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-SBB-MailScanner-Information: Please contact the ISP for more information X-SBB-MailScanner: Found to be clean X-MailScanner-From: ggajic@sbb.co.yu Subject: IPF 4.1.8 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 19:26:16 -0000 Hi, Have you tried building it from source? There is INSTALL.FreeBSD. First you have to run BSD/kupgrade and then recompile your kernel with options IPFILTER. If you have tried compiling it on AMD64 here is patch that solves problem: --- ip_frag.c Tue Mar 8 13:51:04 2005 +++ ip_frag.c Tue Mar 8 14:53:46 2005 @@ -391,7 +398,7 @@ WRITE_ENTER(&ipf_ipidfrag); fra = ipfr_newfrag(fin, 0, ipfr_ipidtab); if (fra != NULL) { - fra->ipfr_data = (void *)ipid; + fra->ipfr_data = (void *)(intptr_t)ipid; *ipfr_ipidtail = fra; fra->ipfr_prev = ipfr_ipidtail; ipfr_ipidtail = &fra->ipfr_next; @@ -576,7 +583,7 @@ READ_ENTER(&ipf_ipidfrag); ipf = fr_fraglookup(fin, ipfr_ipidtab); if (ipf != NULL) - id = (u_32_t)ipf->ipfr_data; + id = (u_32_t)(intptr_t)ipf->ipfr_data; else id = 0xffffffff; RWLOCK_EXIT(&ipf_ipidfrag); gg. > Hi > > I`ve tried to import IPF 4.1.8 into freebsd-stable (5.4). It's first time I > tried something similar. Problem is, that the kernel fails to compile (it > needs somewhere 3 parameters, but gets only 2... or what). I followed the > readme for freebsd-5. Any help ? > > Jan Sebosik