From owner-freebsd-net@FreeBSD.ORG Mon Nov 10 10:16:48 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F38D116A4CE for ; Mon, 10 Nov 2003 10:16:47 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id E73B643F93 for ; Mon, 10 Nov 2003 10:16:46 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.9p2/8.12.9) with ESMTP id hAAIExMg059497; Mon, 10 Nov 2003 13:15:00 -0500 (EST) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)hAAIExqT059494; Mon, 10 Nov 2003 13:14:59 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Mon, 10 Nov 2003 13:14:59 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: Bruce M Simpson In-Reply-To: <20031110073822.GA20611@saboteur.dek.spc.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-net@freebsd.org Subject: Re: Viewing multicast group membership? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Nov 2003 18:16:48 -0000 On Mon, 10 Nov 2003, Bruce M Simpson wrote: > Pardon me if this is an FAQ or answered somewhere else. > > I've had a quick skim through the man pages and the source, and can't > seem to find a means of listing which IPv4 multicast groups a host is > currently a member of. > > The net.igmp.stats sysctl only seems to maintain general protocol level > statistics; it doesn't contain group information. This is the sysctl > reported by 'netstat -g'. > > I guess I need to write some code to open /dev/kmem and walk > ifmultihead. Or does someone have a hack lying around for this I can > clean up and commit? I can't speak to existing code for this, but I can say I have a preference for having a sysctl version of the code available in the vague hopes that someday we can drop the setgid kmem bit from netstat... Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories