/* Find the IGMP_GROUP structure which contains the status of multicast group Address in this IGMP control block */
IGMP_GROUP* Ip4FindGroup(IN IGMP_SERVICE_DATA *IgmpCtrl, IN IP4_ADDR Address)
/* Find the IGMP_GROUP structure which contains the status of multicast group Address in this IGMP control block */
IGMP_GROUP* Ip4FindGroup(IN IGMP_SERVICE_DATA *IgmpCtrl, IN IP4_ADDR Address)
{
  LIST_ENTRY  *Entry;
  IGMP_GROUP  *Group;
  NET_LIST_FOR_EACH (Entry, &IgmpCtrl->Groups) {
    Group = NET_LIST_USER_STRUCT (Entry, IGMP_GROUP, Link);
    if (Group->Address == Address) {
      return Group;
    }
  }
  return NULL;
}