[pf4freebsd] Re: Carp work (re)started - how to create new files

sam samwun at hgdbroadband.com
Wed Sep 15 21:12:26 PDT 2004


sam wrote:

> Pyun YongHyeon wrote:
>
>> On Tue, Aug 17, 2004 at 11:10:34AM +0800, sam wrote:
>> > Max Laier wrote:
>> > > >On Monday 16 August 2004 20:01, sam wrote:
>> > > > >
>> > >>Max Laier wrote:
>> > >>   > >>
>> > ><...>
>> > > > >
>> > >>>Fixed in the mean time. See:
>> > >>>http://people.freebsd.org/~mlaier/CARP/
>> > >>>     > >>>
>> > >>Thanks, I have applied all 3 patches on top of the previous one in
>> > >>love2party.
>> > >>   > >>
>> > >
>> > >err .. NO! ... each patchset is complete. You just check out a 
>> clean tree > >and apply the most recent set (while hoping that it 
>> does not create > >rejects).
>> > >
>> > > > >
>> > Hi, do I still need RANDOM_IP_ID in the kernel configuration file?
>>
>> Probably not.
>> You need a sysctl OID in sysctl.conf(5) in latest -CURRENT.
>>
>> net.inet.ip.random_id=1
>>
>> > I got the following error with options RANDOM_IP_ID in the kernel 
>> conf file:
>> > > # config SEC5-2a
>> > SEC5-2a: unknown option "RANDOM_IP_ID"
>> > > I enclosed portion of the kernel conf file:
>> > #-------for PF configuration -----#
>> > device          bpf
>> > options         PFIL_HOOKS
>> > options         RANDOM_IP_ID
>> >      > device          pf              # required
>> > device          pflog           # optional
>> > device          pfsync          # optional
>> > > device          CARP
>> > #---------------------------------#
>> > > Thanks
>> > sam
>> > >
>>  
>>
> Hi, do  you know how to build it with CARP support?
> I tried the commandline "config mykern", and it returned error like 
> "unkown device CARP"
> After commented out the "device CARP" in mykern file, the "config 
> mykern" works.
> But doing a "make depend;make" in the ../compile/mykern/ directory 
> returned error:
> ../../../net/if_ethersubr.c: In function `ether_demux':
> ../../../net/if_ethersubr.c:697: warning: label `pre_stats' defined 
> but not used
> *** Error code 1
> I known the new way of building the kernel is "make 
> buildkernel=mykern" in the /usr/src directory. But it had error with 
> opt_carp.* not found when I did that 3 months ago. As far as I known, 
> all the opt_*.h files are generated by the executing the command 
> "config mykern", so I m wondering whether "make buildkernel=mykern 
> does create opt_*h now, especially the opt_carp.h file.
>
> Thanks
> sam
>
>
>
>
I just found that I need to define "device carp" in the kernel conf 
file. The original definition is wrong - "device CARP".
But not I came to another "problem", the current patch of CARP has new 
files written in the patch file, such as those ip_carp.h/c How can I 
create these new files with unix command "patch" in FreeBSD? The patch 
-p0 < ... does not create any new file that is not found in the src 
directory.

thanks
sam





More information about the freebsd-pf mailing list