From owner-freebsd-pf@FreeBSD.ORG Thu Sep 16 04:12:26 2004 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 674) id 6DC1616A4CF; Thu, 16 Sep 2004 04:12:26 +0000 (GMT) Delivered-To: mlaier@vampire.homelinux.org Received: (qmail 68837 invoked by alias); 17 Aug 2004 07:33:17 -0000 Delivered-To: unirz@vampire.homelinux.org Received: (qmail 68834 invoked from network); 17 Aug 2004 07:33:17 -0000 Received: from mailstud.rz.uni-karlsruhe.de (129.13.185.210) by p54808668.dip.t-dialin.net with SMTP; 17 Aug 2004 07:33:17 -0000 Received: from spamstud.rz.uni-karlsruhe.de (spamstud.rz.uni-karlsruhe.de [129.13.185.237]) by mailstud.rz.uni-karlsruhe.de with esmtp (Exim 4.34 #1) id 1BwyUl-0006sa-7G for max.laier@stud.uni-karlsruhe.de; Tue, 17 Aug 2004 09:34:59 +0200 Received: from localhost (exim@[127.0.0.1]) by spamstud.rz.uni-karlsruhe.de with spam-scanned (Exim 4.34 #1) id 1BwyUl-0005U5-05 for max.laier@stud.uni-karlsruhe.de; Tue, 17 Aug 2004 09:34:59 +0200 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by spamstud.rz.uni-karlsruhe.de with esmtp (Exim 4.34 #1) id 1BwyUk-0005Tu-Tb for max.laier@stud.uni-karlsruhe.de; Tue, 17 Aug 2004 09:34:58 +0200 Received: from [212.227.126.210] (helo=mxng14.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1BwyUk-0002km-00 for max.laier@stud.uni-karlsruhe.de; Tue, 17 Aug 2004 09:34:58 +0200 Received: from [206.53.239.180] (helo=turing.freelists.org) by mxng14.kundenserver.de with esmtp (Exim 3.35 #1) id 1BwyUg-0006GB-00 for max@love2party.net; Tue, 17 Aug 2004 09:34:55 +0200 Received: from localhost (localhost [127.0.0.1])ESMTP id 8215272C303; Tue, 17 Aug 2004 02:34:15 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13979-72; Tue, 17 Aug 2004 02:34:15 -0500 (EST) Received: from turing (localhost [127.0.0.1])ESMTP id B507072C4B8; Tue, 17 Aug 2004 02:34:14 -0500 (EST) Received: with ECARTIS (v1.0.0; list pf4freebsd); Tue, 17 Aug 2004 02:33:58 -0500 (EST) X-Original-To: pf4freebsd@freelists.org Delivered-To: pf4freebsd@freelists.org Received: from localhost (localhost [127.0.0.1])ESMTP id 9DC0272C303 for ; Tue, 17 Aug 2004 02:33:57 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14832-30 for ; Tue, 17 Aug 2004 02:33:57 -0500 (EST) Received: from smtp02.net-yan.com (smtp02.hgcbroadband.com [210.0.255.157]) ESMTP id 4A42E72C1ED for ; Tue, 17 Aug 2004 02:33:56 -0500 (EST) Received: (qmail 89542 invoked from network); 17 Aug 2004 07:34:32 -0000 Received: from unknown (HELO [192.168.4.129]) (samwun@hgcbroadband.com@[221.127.107.11]) (envelope-sender ) by localhost (qmail-ldap-1.03) with SMTP for ; 17 Aug 2004 07:34:32 -0000 Message-ID: <4121B403.2020400@hgdbroadband.com> From: sam User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pf4freebsd@freelists.org References: <200408052130.51026.max@love2party.net> <200408161934.23219.max@love2party.net> <4120F693.8080305@hgdbroadband.com> <200408162008.20768.max@love2party.net> <4121772A.9020703@hgdbroadband.com> <20040817034647.GA4488@kt-is.co.kr> <4121A8E0.8040806@hgdbroadband.com> In-Reply-To: <4121A8E0.8040806@hgdbroadband.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at freelists.org X-archive-position: 417 X-ecartis-version: Ecartis v1.0.0 Sender: pf4freebsd-bounce@freelists.org Errors-To: pf4freebsd-bounce@freelists.org X-original-sender: samwun@hgdbroadband.com Precedence: normal X-list: pf4freebsd X-Virus-Scanned: by amavisd-new at freelists.org X-Provags-Forward: max@love2party.net -> max.laier@stud.uni-karlsruhe.de X-Scan-Signature: b0dd05613d06e0065775d3c2990b8079 X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on mail6.rz.uni-karlsruhe.de X-Spam-Status: No, hits=-4.9 required=7.0 tests=BAYES_00 autolearn=no version=2.61 X-Spam-Level: X-UID: 523 X-Length: 7541 X-Mailman-Approved-At: Thu, 16 Sep 2004 04:12:48 +0000 Subject: [pf4freebsd] Re: Carp work (re)started - how to create new files X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.1 Reply-To: pf4freebsd@freelists.org List-Id: Technical discussion and general questions about packet filter (pf) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Thu, 16 Sep 2004 04:12:26 -0000 X-Original-Date: Tue, 17 Aug 2004 15:30:11 +0800 X-List-Received-Date: Thu, 16 Sep 2004 04:12:26 -0000 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