diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-02-14 09:40:22 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-02-14 09:40:22 +0000 |
commit | e48e37fce2611df7a52aff271835ff72ee396d9b (patch) | |
tree | f6427ba11251479c615da9b5a3e38aa8c7b0f943 /MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Wrq.c | |
parent | bb8ffffd1c0ff0ee697c26d377fd9767097cc02b (diff) | |
download | edk2-e48e37fce2611df7a52aff271835ff72ee396d9b.zip edk2-e48e37fce2611df7a52aff271835ff72ee396d9b.tar.gz edk2-e48e37fce2611df7a52aff271835ff72ee396d9b.tar.bz2 |
Use Mde library and definition instead of some native definitions in NetLib, to simply network library.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4693 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Wrq.c')
-rw-r--r-- | MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Wrq.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Wrq.c b/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Wrq.c index e61b7b5..12b4c4a 100644 --- a/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Wrq.c +++ b/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Wrq.c @@ -131,7 +131,7 @@ Mtftp4WrqSendBlock ( if (DataLen > 0) {
NetbufAllocSpace (UdpPacket, DataLen, FALSE);
- NetCopyMem (Packet->Data.Data, (UINT8 *) Token->Buffer + Start, DataLen);
+ CopyMem (Packet->Data.Data, (UINT8 *) Token->Buffer + Start, DataLen);
}
} else {
@@ -162,7 +162,7 @@ Mtftp4WrqSendBlock ( if (DataLen > 0) {
NetbufAllocSpace (UdpPacket, DataLen, FALSE);
- NetCopyMem (Packet->Data.Data, DataBuf, DataLen);
+ CopyMem (Packet->Data.Data, DataBuf, DataLen);
gBS->FreePool (DataBuf);
}
}
@@ -327,7 +327,7 @@ Mtftp4WrqHandleOack ( //
// Parse and validate the options from server
//
- NetZeroMem (&Reply, sizeof (MTFTP4_OPTION));
+ ZeroMem (&Reply, sizeof (MTFTP4_OPTION));
Status = Mtftp4ParseOptionOack (Packet, Len, &Reply);
if (EFI_ERROR (Status) || !Mtftp4WrqOackValid (&Reply, &Instance->RequestOption)) {
@@ -428,7 +428,7 @@ Mtftp4WrqInput ( Len = UdpPacket->TotalSize;
if (UdpPacket->BlockOpNum > 1) {
- Packet = NetAllocatePool (Len);
+ Packet = AllocatePool (Len);
if (Packet == NULL) {
Status = EFI_OUT_OF_RESOURCES;
@@ -502,7 +502,7 @@ ON_EXIT: // restart the receive, otherwise end the session.
//
if ((Packet != NULL) && (UdpPacket->BlockOpNum > 1)) {
- NetFreePool (Packet);
+ gBS->FreePool (Packet);
}
if (UdpPacket != NULL) {
|