ipfilter 4.1.6 won't build on FreeBSD5.3 amd64

Goran Gajic ggajic at mail.sbb.co.yu
Tue Mar 8 14:12:36 GMT 2005



Here is diff that makes ipfilter 4.1.6 able to compile on amd64
as kernel option IPFILTER:

--- 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);


Regards,
gg.


More information about the freebsd-amd64 mailing list