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/Ip4Dxe/Ip4Option.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/Ip4Dxe/Ip4Option.c')
-rw-r--r-- | MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Option.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Option.c b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Option.c index 322166f..f3caf6e 100644 --- a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Option.c +++ b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Option.c @@ -181,7 +181,7 @@ Ip4CopyOption ( // don't copy options that is only valid for the first fragment
//
if (FirstFragment || (Type & IP4_OPTION_COPY_MASK)) {
- NetCopyMem (OptBuf + Next, Option + Cur, Len);
+ CopyMem (OptBuf + Next, Option + Cur, Len);
Next += Len;
}
@@ -224,8 +224,8 @@ Ip4CopyOption ( // Copy the option to the Buf, zero the buffer first to pad
// the options with NOP to align to 4 bytes.
//
- NetZeroMem (Buf, Len);
- NetCopyMem (Buf, OptBuf, Next);
+ ZeroMem (Buf, Len);
+ CopyMem (Buf, OptBuf, Next);
*BufLen = Len;
return EFI_SUCCESS;
}
|