From owner-freebsd-net Thu Jan 24 1:10:38 2002 Delivered-To: freebsd-net@freebsd.org Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by hub.freebsd.org (Postfix) with ESMTP id 65E6037B41F; Thu, 24 Jan 2002 01:10:10 -0800 (PST) Received: from pool0373.cvx22-bradley.dialup.earthlink.net ([209.179.199.118] helo=mindspring.com) by albatross.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16TftX-0001O6-00; Thu, 24 Jan 2002 01:10:07 -0800 Message-ID: <3C4FCF6B.51A6242@mindspring.com> Date: Thu, 24 Jan 2002 01:10:03 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Harti Brandt Cc: Ruslan Ermilov , net@FreeBSD.org Subject: Re: interface multicast address list References: <20020124095326.M24779-100000@beagle.fokus.gmd.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Harti Brandt wrote: > TL>> > is there any way to get at the if_multiaddrs list from user space (except > TL>> > for digging through the kernel with kvm). > TL>> > TL>> I'm affraid not. > TL> > TL>Actually, the easiest way is to remember the things when you > TL>set them in the first place. > > That's not an option for a daemon needing this information. Why not? Who set them up? Wasn't it the Daemon that bound the sockets and the multicast addresses? This is like the Java-thing where people were too lazy to keep track of their memory allocations, so they invented dynamic scoping and garbage collection, or the Linux thing, where people were too lazy to remember the name of the file they called open(2) on in order to get a descriptor, and so wanted a function call to get the path to the file, totally ignoring the effects of directory permissions, hard links, and exclusion groups. Like the X Server: if you put the thing into the mode, it's your job to remember it so that you can take it out, later. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message