//\r
// Configure MNP to receive ALL_SYSTEM multicast\r
//\r
- Group = NetAllocatePool (sizeof (IGMP_GROUP));\r
+ Group = AllocatePool (sizeof (IGMP_GROUP));\r
\r
if (Group == NULL) {\r
return EFI_OUT_OF_RESOURCES;\r
goto ON_ERROR;\r
}\r
\r
- NetListInsertHead (&IgmpCtrl->Groups, &Group->Link);\r
+ InsertHeadList (&IgmpCtrl->Groups, &Group->Link);\r
return EFI_SUCCESS;\r
\r
ON_ERROR:\r
- NetFreePool (Group);\r
+ gBS->FreePool (Group);\r
return Status;\r
}\r
\r
IN IP4_ADDR Address\r
)\r
{\r
- NET_LIST_ENTRY *Entry;\r
+ LIST_ENTRY *Entry;\r
IGMP_GROUP *Group;\r
\r
NET_LIST_FOR_EACH (Entry, &IgmpCtrl->Groups) {\r
IN EFI_MAC_ADDRESS *Mac\r
)\r
{\r
- NET_LIST_ENTRY *Entry;\r
+ LIST_ENTRY *Entry;\r
IGMP_GROUP *Group;\r
INTN Count;\r
\r
// Otherwise, create a new IGMP_GROUP, Get the multicast's MAC address,\r
// send a report, then direct MNP to receive the multicast.\r
//\r
- Group = NetAllocatePool (sizeof (IGMP_GROUP));\r
+ Group = AllocatePool (sizeof (IGMP_GROUP));\r
\r
if (Group == NULL) {\r
return EFI_OUT_OF_RESOURCES;\r
goto ON_ERROR;\r
}\r
\r
- NetListInsertHead (&IgmpCtrl->Groups, &Group->Link);\r
+ InsertHeadList (&IgmpCtrl->Groups, &Group->Link);\r
return EFI_SUCCESS;\r
\r
ON_ERROR:\r
- NetFreePool (Group);\r
+ gBS->FreePool (Group);\r
return Status;\r
}\r
\r
Ip4SendIgmpMessage (IpSb, IP4_ALLROUTER_ADDRESS, IGMP_LEAVE_GROUP, Group->Address);\r
}\r
\r
- NetListRemoveEntry (&Group->Link);\r
- NetFreePool (Group);\r
+ RemoveEntryList (&Group->Link);\r
+ gBS->FreePool (Group);\r
\r
return EFI_SUCCESS;\r
}\r
IGMP_HEAD Igmp;\r
IGMP_GROUP *Group;\r
IP4_ADDR Address;\r
- NET_LIST_ENTRY *Entry;\r
+ LIST_ENTRY *Entry;\r
\r
IgmpCtrl = &IpSb->IgmpCtrl;\r
\r
)\r
{\r
IGMP_SERVICE_DATA *IgmpCtrl;\r
- NET_LIST_ENTRY *Entry;\r
+ LIST_ENTRY *Entry;\r
IGMP_GROUP *Group;\r
\r
IgmpCtrl = &IpSb->IgmpCtrl;\r
{\r
IP4_ADDR *Groups;\r
\r
- Groups = NetAllocatePool (sizeof (IP4_ADDR) * (Count + 1));\r
+ Groups = AllocatePool (sizeof (IP4_ADDR) * (Count + 1));\r
\r
if (Groups == NULL) {\r
return NULL;\r
}\r
\r
- NetCopyMem (Groups, Source, Count * sizeof (IP4_ADDR));\r
+ CopyMem (Groups, Source, Count * sizeof (IP4_ADDR));\r
Groups[Count] = Addr;\r
\r
return Groups;\r