Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Nov 2003 13:14:59 -0500 (EST)
From:      Robert Watson <rwatson@freebsd.org>
To:        Bruce M Simpson <bms@spc.org>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Viewing multicast group membership?
Message-ID:  <Pine.NEB.3.96L.1031110131422.59199A-100000@fledge.watson.org>
In-Reply-To: <20031110073822.GA20611@saboteur.dek.spc.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1031110131422.59199A-100000>