UINT32 Cur;\r
UINT32 Len;\r
UINT32 Point;\r
- UINT8 IcmpType;\r
- UINT8 IcmpCode;\r
- UINT32 IcmpPoint;\r
+ volatile UINT8 IcmpType;\r
+ volatile UINT8 IcmpCode;\r
+ volatile UINT32 IcmpPoint;\r
\r
IcmpType = ICMP_PARAMETER_PROBLEM;\r
IcmpCode = 0;\r
// don't copy options that is only valid for the first fragment\r
//\r
if (FirstFragment || (Type & IP4_OPTION_COPY_MASK)) {\r
- NetCopyMem (OptBuf + Next, Option + Cur, Len);\r
+ CopyMem (OptBuf + Next, Option + Cur, Len);\r
Next += Len;\r
}\r
\r
// Copy the option to the Buf, zero the buffer first to pad\r
// the options with NOP to align to 4 bytes.\r
//\r
- NetZeroMem (Buf, Len);\r
- NetCopyMem (Buf, OptBuf, Next);\r
+ ZeroMem (Buf, Len);\r
+ CopyMem (Buf, OptBuf, Next);\r
*BufLen = Len;\r
return EFI_SUCCESS;\r
}\r