Subject: [PATCH][MCAST]Clear MAF_GSQUERY flag when process MLDv1 general query messages.

From: Yan Zheng <[email-masked]>
Date: Mon, 07 Nov 2005 22:13:34 +0800

Hi.

MAF_GSQUERY flag may cause problem when MLDv1 compatibility mode expires.  

Signed-off-by: Yan Zheng <[email-masked]>

Index: net/ipv6/mcast.c
================================================================================
--- linux-2.6.14/net/ipv6/mcast.c	2005-11-05 09:09:47.000000000 +0800
+++ linux/net/ipv6/mcast.c	2005-11-07 21:57:27.000000000 +0800
@@ -1166,6 +1166,7 @@ int igmp6_event_query(struct sk_buff *sk
 	if (group_type == IPV6_ADDR_ANY) {
 		for (ma = idev->mc_list; ma; ma=ma->next) {
 			spin_lock_bh(&ma->mca_lock);
+			ma->mca_flags &= ~MAF_GSQUERY;
 			igmp6_group_queried(ma, max_delay);
 			spin_unlock_bh(&ma->mca_lock);
 		}