From owner-freebsd-net Wed Jan 23 5:10:34 2002 Delivered-To: freebsd-net@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id EE22637B404 for ; Wed, 23 Jan 2002 05:10:23 -0800 (PST) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id g0NDA4l82896; Wed, 23 Jan 2002 15:10:04 +0200 (EET) (envelope-from ru) Date: Wed, 23 Jan 2002 15:10:04 +0200 From: Ruslan Ermilov To: Harti Brandt Cc: net@FreeBSD.org Subject: Re: interface multicast address list Message-ID: <20020123151004.F66702@sunbay.com> References: <20020123145003.C66702@sunbay.com> <20020123135549.E86919-100000@beagle.fokus.gmd.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020123135549.E86919-100000@beagle.fokus.gmd.de> User-Agent: Mutt/1.3.23i 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 On Wed, Jan 23, 2002 at 01:59:27PM +0100, Harti Brandt wrote: > On Wed, 23 Jan 2002, Ruslan Ermilov wrote: > > RE>[Redirected to -net with -hackers Bcc:ed] > RE> > RE>On Wed, Jan 23, 2002 at 10:59:00AM +0100, Harti Brandt wrote: > RE>> > RE>> Hi, > RE>> > RE>> is there any way to get at the if_multiaddrs list from user space (except > RE>> for digging through the kernel with kvm). > RE>> > RE>I'm affraid not. > RE> > RE>> If not, where would one add it? > RE>> sysctl net.link.??? perhaps? Or SIOCIFGETMULTI? > RE>> > RE>I think the right way would be to add this to net/rtsock.c:sysctl_iflist() > RE>to be accessible through the NET_RT_IFLIST sysctl. BTW, I've just fixed > RE>the sysctl(3) manpage to document the sixth level of this sysctl. > > I think so too and have just implemented it. There are also a couple of > other places to fix with this change, where parsing of the list returned > by NET_RT_IFLIST is, ehm, broken (ifconfig comes in mind). If I send you > the patch would you look at it and, if it is ok, commit it? > Hmm, are you sure ifconfig(8) would break if we add RTM_NEWMADDR's after RTM_NEWADDR's? In any case, changing the format of NET_RT_IFLIST _may_ break utilities, and we should be very careful to not break them. I think that the good alternative would be to implement new NET_RT_IFMALIST, similar to NET_RT_IFLIST, but with RTM_NEWMADDR's instead of RTM_NEWADDR's, but let me look at your patch first. Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message