Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 May 2005 21:26:12 +0200 (CEST)
From:      Goran Gajic <ggajic@sbb.co.yu>
To:        freebsd-stable@www.freebsd.org
Subject:   IPF 4.1.8
Message-ID:  <Pine.BSF.4.62.0505122120260.46208@mail.sbb.co.yu>

next in thread | raw e-mail | index | archive | help


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.62.0505122120260.46208>