From owner-freebsd-ports@FreeBSD.ORG Fri Mar 26 10:25:41 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A7641065679 for ; Fri, 26 Mar 2010 10:25:41 +0000 (UTC) (envelope-from cochard@gmail.com) Received: from mail-ww0-f54.google.com (mail-ww0-f54.google.com [74.125.82.54]) by mx1.freebsd.org (Postfix) with ESMTP id F40E78FC27 for ; Fri, 26 Mar 2010 10:25:40 +0000 (UTC) Received: by wwb29 with SMTP id 29so743214wwb.13 for ; Fri, 26 Mar 2010 03:25:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:from:date :x-google-sender-auth:received:message-id:subject:to:content-type; bh=z6ccztVGxnpV1CIZ/n432Wyy/NPySJ9ErpBnQVMLANw=; b=Lsj1apAUYjOUMeB8s+jVP2G4iOvQnMAHOBcLvGUXYzOTppoTrcpkOmdEApox5M3kSH gu0TnyU6l08MTRg7cBMzpb55qF5s3X9eW5aDxBTdJewTQTV0OE1hQJZPxSgumSTeH9y9 A6gY0gqUc9RkzR5c7sQ+8wM9b2uP2uCiZ5vFk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; b=k/6q07z9rvLqqMkx7nqhCOsgn6Xa6SqfS79quSq0jgd8dXhRBHf61fdzY6JLveuVin +IPLE/TscYVkri9uNWlWGDBi5VlAyomcAwuLATYWvagCylBaclpvIGR7WCuF39B1tlah dDtxws6T8Wzf7JyPsLlwTchEGt3IHJPk1m/Rs= MIME-Version: 1.0 Sender: cochard@gmail.com Received: by 10.216.164.203 with HTTP; Fri, 26 Mar 2010 03:02:23 -0700 (PDT) From: =?ISO-8859-1?Q?Olivier_Cochard=2DLabb=E9?= Date: Fri, 26 Mar 2010 11:02:23 +0100 X-Google-Sender-Auth: 742233e237bda5c4 Received: by 10.216.159.6 with SMTP id r6mr348327wek.67.1269597763196; Fri, 26 Mar 2010 03:02:43 -0700 (PDT) Message-ID: <3131aa531003260302j2e2521cayd2c77bfff6476261@mail.gmail.com> To: freebsd-ports-mailinglist Content-Type: text/plain; charset=ISO-8859-1 Subject: net/ucarp : New rc script with multiple VHID and FIB support X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2010 10:25:41 -0000 Hi, I've improved the startup script for net/ucarp by adding multiple VHID support, and FIB support. Now, you can have this example of rc.conf configuration with net/ucarp (up to the 255 VHID): # uCarp ucarp_enable="YES" #ucarp_VHID_option="value" ucarp_1_if="ed1" ucarp_1_src="10.0.1.2" ucarp_1_addr="10.0.1.1" ucarp_1_shutdown="NO" ucarp_3_if="ed3" ucarp_3_src="10.0.3.2" ucarp_3_pass="passcarp" ucarp_3_addr="10.0.3.1" ucarp_3_fib="3" ucarp_4_if="ed4" ucarp_4_src="10.0.4.2" ucarp_4_pass="passcarp4" ucarp_4_addr="10.0.4.1" ucarp_4_fib="2" If you want to try it, you can get it here: http://bsdrp.svn.sourceforge.net/viewvc/bsdrp/trunk/Files/usr/local/etc/rc.d/ucarp I've got only one bug to solve (if someone have an idea): If ucarp is already started, and you start it again, the rc.subr should detect already running ucarp processes and prevent to launch other ucarp processes. But there is a bug somewhere, and rc.subr didn't prevent to start them again :-( Regards, Olivier