From owner-freebsd-net@FreeBSD.ORG Sun Nov 9 23:38:26 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 A10BF16A4CE for ; Sun, 9 Nov 2003 23:38:26 -0800 (PST) Received: from arginine.spc.org (arginine.spc.org [195.206.69.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7764F43F3F for ; Sun, 9 Nov 2003 23:38:25 -0800 (PST) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 432B2651F1 for ; Mon, 10 Nov 2003 07:38:24 +0000 (GMT) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 44958-04-2 for ; Mon, 10 Nov 2003 07:38:24 +0000 (GMT) Received: from saboteur.dek.spc.org (unknown [82.147.19.91]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id BDCE8651EE for ; Mon, 10 Nov 2003 07:38:23 +0000 (GMT) Received: by saboteur.dek.spc.org (Postfix, from userid 1001) id 9F9B437; Mon, 10 Nov 2003 07:38:22 +0000 (GMT) Date: Mon, 10 Nov 2003 07:38:22 +0000 From: Bruce M Simpson To: freebsd-net@freebsd.org Message-ID: <20031110073822.GA20611@saboteur.dek.spc.org> Mail-Followup-To: freebsd-net@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: 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 07:38:26 -0000 Hi, 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? BMS