/* A multicast group has three types of members: full member, non member, and send only member. We need to keep track of the number of members of each type based on their join state. Adjust the number of members the belong to the specified join states.  */
static void adjust_membership(struct mcast_group *group, u8 join_state, int inc)
/* A multicast group has three types of members: full member, non member, and send only member. We need to keep track of the number of members of each type based on their join state. Adjust the number of members the belong to the specified join states.  */
static void adjust_membership(struct mcast_group *group, u8 join_state, int inc)
{
	int i;
	for (i = 0; i < 3; i++, join_state >>= 1)
		if (join_state & 0x1)
			group->members[i] += inc;
}