From owner-freebsd-net@FreeBSD.ORG Thu Jan 25 21:33:32 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 25EAF16A406; Thu, 25 Jan 2007 21:33:32 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.183]) by mx1.freebsd.org (Postfix) with ESMTP id A41B213C44B; Thu, 25 Jan 2007 21:33:31 +0000 (UTC) (envelope-from max@love2party.net) Received: from [88.66.51.18] (helo=amd64.laiers.local) by mrelayeu.kundenserver.de (node=mrelayeu1) with ESMTP (Nemesis), id 0MKwpI-1HACDm3Rcc-0006zQ; Thu, 25 Jan 2007 22:33:31 +0100 From: Max Laier Organization: FreeBSD To: freebsd-net@freebsd.org Date: Thu, 25 Jan 2007 22:33:10 +0100 User-Agent: KMail/1.9.5 References: <20070125162422.GA7922@bestcom.ru> <20070125203807.S13293@fledge.watson.org> <20070125212310.GG7922@cell.sick.ru> In-Reply-To: <20070125212310.GG7922@cell.sick.ru> X-Face: ,,8R(x[kmU]tKN@>gtH1yQE4aslGdu+2]; R]*pL,U>^H?)gW@49@wdJ`H<=?utf-8?q?=25=7D*=5FBD=0A=09U=5For=3D=5CmOZf764=26nYj=3DJYbR1PW0ud?=>|!~,,CPC.1-D$FG@0h3#'5"k{V]a~.<=?utf-8?q?mZ=7D44=23Se=7Em=0A=09Fe=7E=5C=5DX5B=5D=5Fxj?=(ykz9QKMw_l0C2AQ]}Ym8)fU MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1765310.oDHRGgHRZ9"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200701252233.17309.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de login:61c499deaeeba3ba5be80f48ecc83056 X-Provags-ID2: V01U2FsdGVkX19I08y7gk0V+ds24FUKxqS/FXgHHeSRgKlWJq21KERtIigRUE4Z0sTcQWjuDm3vgad7lUuPNnXz2O/LEImzMSwMpQ8I8jiQPNXZjXpMdH1Jdg== Cc: "Bruce M. Simpson" , Robert Watson Subject: Re: rev. 1.94 of netinet/in.c broke CARP 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: Thu, 25 Jan 2007 21:33:32 -0000 --nextPart1765310.oDHRGgHRZ9 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 25 January 2007 22:23, Gleb Smirnoff wrote: > On Thu, Jan 25, 2007 at 08:40:52PM +0000, Robert Watson wrote: > R> Architecturally, the right fix is that CARP needs to have a handler > for R> ifnet destruction that always runs before the multicast address > garbage R> collection. I'm pretty preoccupied for the next few days due > to an R> impending paper deadline, so can't investigate further > currently, but one R> way or the other that ordering dependency needs > to be expressed. If done R> properly, CARP will always have released > its multicast address before they R> are forceably removed. Having the > reference count is good too, but what I R> describe should be > sufficient regardless of the refcount. > > This means removing usage of EVENTHANDLER(9) and going back to > exporting carp_ifdetach() and calling it directly from if_detach(). > This is back out revision 1.255 of net/if.c. Not sure what is a right > way... > > I am worried about that CARP is not the only subsystem in kernel > that can join a multicast group on an ifnet, and keep a pointer > to the multicast instance. pfsync might, but from a quick glance at this thread and code it seems=20 non-related. I'll look more closely later. =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart1765310.oDHRGgHRZ9 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQBFuSIdXyyEoT62BG0RAvYZAJ4sxF8FIAc8ujb9g/DQjaNTA39DWgCbBzR+ WiIpdnP9NU2kGp0noOIQ0mA= =ZF/B -----END PGP SIGNATURE----- --nextPart1765310.oDHRGgHRZ9--