From owner-cvs-all@FreeBSD.ORG Thu Mar 31 17:33:31 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0EA6616A4D3; Thu, 31 Mar 2005 17:33:31 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E8A7343D5D; Thu, 31 Mar 2005 17:33:30 +0000 (GMT) (envelope-from glebius@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j2VHXUgj051367; Thu, 31 Mar 2005 17:33:30 GMT (envelope-from glebius@repoman.freebsd.org) Received: (from glebius@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j2VHXUJv051366; Thu, 31 Mar 2005 17:33:30 GMT (envelope-from glebius) Message-Id: <200503311733.j2VHXUJv051366@repoman.freebsd.org> From: Gleb Smirnoff Date: Thu, 31 Mar 2005 17:33:30 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_5 Subject: cvs commit: src/sys/netinet ip_carp.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Mar 2005 17:33:31 -0000 glebius 2005-03-31 17:33:30 UTC FreeBSD src repository Modified files: (Branch: RELENG_5) sys/netinet ip_carp.c Log: When several carp interfaces are attached to Ethernet interface, carp_carpdev_state_locked() is called every time carp interface is attached. The first call backs up flags of the first interface, and the second call backs up them again, erasing correct values. To solve this, a carp_sc_state_locked() function is introduced. It is called when interface is attached to parent, instead of calling carp_carpdev_state_locked. carp_carpdev_state_locked() calls carp_sc_state_locked() for each sc in chain. Reported by: Yuriy N. Shkandybin, sem Approved by: re (kensmith) Revision Changes Path 1.21.2.2 +37 -27 src/sys/netinet/ip_carp.c