From owner-freebsd-net@FreeBSD.ORG Tue Oct 11 12:47:53 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74A561065672 for ; Tue, 11 Oct 2011 12:47:53 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 158378FC19 for ; Tue, 11 Oct 2011 12:47:52 +0000 (UTC) Received: by wwe3 with SMTP id 3so9939761wwe.31 for ; Tue, 11 Oct 2011 05:47:52 -0700 (PDT) Received: by 10.227.151.200 with SMTP id d8mr5504901wbw.29.1318335741066; Tue, 11 Oct 2011 05:22:21 -0700 (PDT) Received: from dfleuriot-at-hi-media.com ([83.167.62.196]) by mx.google.com with ESMTPS id o7sm38243192wbh.8.2011.10.11.05.22.19 (version=SSLv3 cipher=OTHER); Tue, 11 Oct 2011 05:22:19 -0700 (PDT) Message-ID: <4E9434FA.5080402@my.gd> Date: Tue, 11 Oct 2011 14:22:18 +0200 From: Damien Fleuriot User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: CARP - immediate INIT-MASTER transition when preempt enabled , bug from openbsd38 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2011 12:47:53 -0000 Hello -net, Just following up on these 2 PRs, respectively for 8.x and 9.0-BETA3: 8.x: http://www.freebsd.org/cgi/query-pr.cgi?pr=161123 9.0b3: http://www.freebsd.org/cgi/query-pr.cgi?pr=161483 There is a bug with CARP where a CARP interface will immediately transition from INIT to MASTER if net.inet.carp.preempt=1 even if there is a faster MASTER already present on the network. This is a bug from OpenBSD 3.8 and lower's implementation of CARP, which remains in 8.2 and 9.0 to this day. >From OBSD 3.9's changelog: http://www.openbsd.org/plus39.html "In carp(4), fix a bug where lower prioritized hosts would invalidly switch to MASTER for a short time at boot-up." I have provided patches in both PRs for sys/netinet/ip_carp.c and would like to ensure this gets looked at, and makes 9.0's release. We have tested the patch in production on 8.2 and that solved our problem. Is there anything I can do to help ?