Date: Wed, 23 Jan 2002 15:10:04 +0200 From: Ruslan Ermilov <ru@FreeBSD.org> To: Harti Brandt <brandt@fokus.gmd.de> Cc: net@FreeBSD.org Subject: Re: interface multicast address list Message-ID: <20020123151004.F66702@sunbay.com> In-Reply-To: <20020123135549.E86919-100000@beagle.fokus.gmd.de> References: <20020123145003.C66702@sunbay.com> <20020123135549.E86919-100000@beagle.fokus.gmd.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020123151004.F66702>