Re: [SAM] detect the presence of an IGMPv3 querier

Stig Venaas <stig@venaas.com> Fri, 20 May 2011 17:45 UTC

Return-Path: <stig@venaas.com>
X-Original-To: sam@ietfa.amsl.com
Delivered-To: sam@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7C61EE0700 for <sam@ietfa.amsl.com>; Fri, 20 May 2011 10:45:43 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -102.6
X-Spam-Level:
X-Spam-Status: No, score=-102.6 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, NO_RELAYS=-0.001, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8DHQ2xA7RSEY for <sam@ietfa.amsl.com>; Fri, 20 May 2011 10:45:43 -0700 (PDT)
Received: from ufisa.uninett.no (ufisa.uninett.no [IPv6:2001:700:1:2:158:38:152:126]) by ietfa.amsl.com (Postfix) with ESMTP id ACA09E069B for <sam@irtf.org>; Fri, 20 May 2011 10:45:42 -0700 (PDT)
Received: from [IPv6:2001:420:4:ea0c:7455:bffc:3b49:6e8e] (unknown [IPv6:2001:420:4:ea0c:7455:bffc:3b49:6e8e]) by ufisa.uninett.no (Postfix) with ESMTPSA id 8D9FF7FE6; Fri, 20 May 2011 19:45:39 +0200 (CEST)
Message-ID: <4DD6A8C0.1000501@venaas.com>
Date: Fri, 20 May 2011 10:45:36 -0700
From: Stig Venaas <stig@venaas.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10
MIME-Version: 1.0
To: Sebastian.Woelke@haw-hamburg.de
References: <BANLkTiktFHMCiPVzApKWuXCG9o_4Z0y0_w@mail.gmail.com>
In-Reply-To: <BANLkTiktFHMCiPVzApKWuXCG9o_4Z0y0_w@mail.gmail.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 8bit
Cc: sam@irtf.org
Subject: Re: [SAM] detect the presence of an IGMPv3 querier
X-BeenThere: sam@irtf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "For use by members of the Scalable Adaptive Multicast \(SAM\) RG" <sam.irtf.org>
List-Unsubscribe: <http://www.irtf.org/mailman/options/sam>, <mailto:sam-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/sam>
List-Post: <mailto:sam@irtf.org>
List-Help: <mailto:sam-request@irtf.org?subject=help>
List-Subscribe: <http://www.irtf.org/mailman/listinfo/sam>, <mailto:sam-request@irtf.org?subject=subscribe>
X-List-Received-Date: Fri, 20 May 2011 17:45:43 -0000

On 5/20/2011 4:36 AM, Sebastian Wölke wrote:
> Hi all,
>
> I'm working on a system software that automatically detects the presence
> of a multicast querier in the current subnet based on passively
> monitoring Linux kernel states.
>
> This works fine for IPv6/MLD by looking into the /proc/net/SNMP6 table.
> For IPv4/IGMP, the SNMP approach does not work. I can detect an IGMPv2
> querier by monitoring 'Timer' in the /proc/net/igmp table: this counts
> down the [Unsolicited Report Interval]. However, this does not exist for
> IGMPv3, as reports are not suppressed.
>
> My question is about IGMPv3. Does anybody know how to detect the
> presence of an IGMPv3 querier based on the kernel states of a multicast
> client?

If you look at "/proc/net/igmp" it should give you the querier version.
I see e.g.:

Idx     Device    : Count Querier       Group    Users Timer    Reporter
1       lo        :     0      V3
                                 010000E0     1 0:00000000               0
2       eth0      :     3      V3
                                 010000E0     1 0:00000000               0

Doesn't this work?

Stig

>
> Thanks for your support,
>
> Sebastian
> _______________________________________________
> SAM mailing list
> SAM@irtf.org
> http://www.irtf.org/mailman/listinfo/sam