From owner-freebsd-current@FreeBSD.ORG Mon Mar 6 23:50:28 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E0E2D16A420 for ; Mon, 6 Mar 2006 23:50:28 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC91743D53 for ; Mon, 6 Mar 2006 23:50:27 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.3) with ESMTP id k26NoPqZ066043; Tue, 7 Mar 2006 02:50:25 +0300 (MSK) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.3/Submit) id k26NoOhS066042; Tue, 7 Mar 2006 02:50:25 +0300 (MSK) (envelope-from yar) Date: Tue, 7 Mar 2006 02:50:24 +0300 From: Yar Tikhiy To: Nik Message-ID: <20060306235024.GA65709@comp.chem.msu.su> References: <60ffc71f0603060759r34f02878ha38a7a275dc0aa6c@mail.gmail.com> <20060306230528.GC61210@comp.chem.msu.su> <60ffc71f0603061531g3c6995d2s54704022fe7ba1f@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <60ffc71f0603061531g3c6995d2s54704022fe7ba1f@mail.gmail.com> User-Agent: Mutt/1.5.9i Cc: current@freebsd.org Subject: Re: multicast group memberships exceeded in FreeBSD 6-Prerelease X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Mar 2006 23:50:29 -0000 On Tue, Mar 07, 2006 at 07:31:47AM +0800, Nik wrote: > Mar 5 18:15:42 pjdist ospfd[82930]: can't setsockopt IP_ADD_MEMBERSHIP (fd > 6, addr 202.552.36.36, ifindex 17, AllDRouters): Too many references: > can'tsplice; perhaps a kernel limit on # of multicast group > memberships has been > exceeded? > Mar 5 18:15:42 pjdist ospfd[82930]: can't setsockopt IP_ADD_MEMBERSHIP (fd > 6, addr 202.552.36.1, ifindex 18, AllDRouters): Too many references: > can'tsplice; perhaps a kernel limit on # of multicast group > memberships has been > exceeded? > > I'm sorry because I did paste the wrong error message. It's seem my system > need some patching as what you said. Please help me to solve this problem. > Forget to mention that I'm using quagga 0.99.3 on FreeBSD 6.0. > > As I mention in my first email, I haven't patching unix system before so I > am really appreciate if you can lead me how to do it. Thanks a lot. Well, I'm afraid this time you'll have to learn how to patch your system by hand, not by the nifty patch(1) utility :-) Just open /sys/netinet/in.h in your favourite text editor and find the following line: #define IP_MAX_MEMBERSHIPS 20 /* per socket */ Just search for `IP_MAX_MEMBERSHIPS'. The number 20, or any seen there, is to be increased to the number of OSPF interfaces, both passive and active, and some more. I've been running my systems with IP_MAX_MEMBERSHIPS of 60 without any ill effects. The final step will be to rebuild and install your modified kernel according to the usual procedure. I'm aware of no use of the parameter outside the kernel. And don't forget about the modification when the next upgrade comes. -- Yar