I just did the step you have written. But in sort still won't compile. I downloaded from the link you gave me, and follow the step. I got the same error.
I am trying to fix it by changing "bpf.h" to "net\bpf.h" in ip_compat.c. After that the compile still error at "nat_resolverule". It said inlining failed. I don't know what is "INLINE" keyword for, I guest that the problem and remove the it from "nat_resolverule" definition. And it works now. It produce different version then you give. It said "ipf: IP Filter: v4.1.1 (416)" I suggest to do this on a newly fresh FreeBSD installation. Also I find out why my major number is not shows up. After taking a look at the "kupgrade" file I know the number is taken from "/dev/ipnat". The GENERIC kernel of FreeBSD 5.2.1 is not compiled with ipfilter support and the ipl module is not loaded too. Refer to devfs behavior that the device will created on the fly, so the device is not there and the script fail to grab the version. And I think it's need a different script for FreeBSD 5.2.1 because mknod also not operate well. ----- Original Message ----- From: "Darren Reed" <[EMAIL PROTECTED]> To: "Angka H. K." <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, April 20, 2004 7:01 PM Subject: Re: FreeBSD 5.2.1 & ipfil 4.1.1 > > Ok, below is the recipe I just used. The ipfilter files that I did > this with can be found at: > http://coombs.anu.edu.au/~avalon/ip_fil4.1next.tar.gz > > Cheers, > Darren > > cat /cdrom/sets/ssys.??| (cd /usr/src; tar xzpf -) > cd /tmp > ftp http://coombs.anu.edu.au/~avalon/ip_fil4.1.1.tar.gz > gunzip -c ip_fil4.1.1.tar.gz | tar xpf - > cd ip_fil4.1.1 > BSD/kupgrade > Major number for IP Filter is 79 > ... > cd /usr/src/sys/i386/conf > vi GENERIC > <add IPFILTER, IPFILTER_LOG> > config GENERIC > cd ../../compile/GENERIC > make depend && make > cp kernel /kernel.new > reboot > <boot kernel.new> > # ipf -V > ipf: IP Filter: v4.1.1 (396) > Kernel: IP Filter: v4.1.1 > Running: yes > Log Flags: 0 = none set > Default: pass all, Logging: available > Active list: 0 > Feature mask: 0x10a > # ls -al /dev/ip* > crw------- 1 root wheel 79, 3 Apr 17 10:20 /dev/ipauth > crw------- 1 root wheel 79, 0 Apr 17 10:20 /dev/ipl > crw------- 1 root wheel 79, 6 Apr 18 22:50 /dev/iplookup > crw------- 1 root wheel 79, 1 Apr 17 10:20 /dev/ipnat > crw------- 1 root wheel 79, 2 Apr 17 10:20 /dev/ipstate > crw------- 1 root wheel 79, 4 Apr 18 22:50 /dev/ipsync > > >
