From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rahul Amaram" Subject: how to read IGMP reports ? Date: Wed, 17 Dec 2003 16:49:59 +0530 Sender: linux-c-programming-owner@vger.kernel.org Message-ID: <001e01c3c48f$bcff20f0$491410ac@rahulatobh73> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-c-programming@vger.kernel.org Hi, I am using RedHat 9.0 and am working on implementing an IGMPv2 testing tool. My test setup includes a machine "172.16.7.10" on which the daemon "mrouted" runs and another mahcine "172.16.7.9" on which the testing tool runs. I am trying to read IGMP packets on machine "172.16.7.9" using raw sockets. But to my surprise only the general queries generated by mrouted running on "172.16.7.10" are being read by the raw socket. The reports generated are being skipped. I know that reports are being generated because of tcpdump which I am simultaneously running on "172.16.7.9" which shows IGMPv2 reports as well. Now my question is simple - if the program which i have written using raw sockets can read General Queries, why isnt it reading Group specific queries and reports ? Should I set any socket options or should I subscribe to any group so that all queries and reports are passed to the raw socket ? In anticipation, Rahul.