mirror of https://github.com/acidanthera/audk.git
Fix build fail.
Signed-off-by: Eric Dong <eric.dong@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13907 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
a56b6e03e2
commit
16cd325fc1
|
@ -443,7 +443,7 @@ Mtftp4SendPacket (
|
||||||
UDP_END_POINT UdpPoint;
|
UDP_END_POINT UdpPoint;
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
UINT16 OpCode;
|
UINT16 OpCode;
|
||||||
UINT16 Value;
|
UINT8 *Buffer;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Save the packet for retransmission
|
// Save the packet for retransmission
|
||||||
|
@ -464,9 +464,9 @@ Mtftp4SendPacket (
|
||||||
// Send the requests to the listening port, other packets
|
// Send the requests to the listening port, other packets
|
||||||
// to the connected port
|
// to the connected port
|
||||||
//
|
//
|
||||||
Value = *((UINT16 *) NetbufGetByte (Packet, 0, NULL));
|
Buffer = NetbufGetByte (Packet, 0, NULL);
|
||||||
ASSERT (Value != NULL);
|
ASSERT (Buffer != NULL);
|
||||||
OpCode = NTOHS (Value);
|
OpCode = NTOHS (*(UINT16 *)Buffer);
|
||||||
|
|
||||||
if ((OpCode == EFI_MTFTP4_OPCODE_RRQ) ||
|
if ((OpCode == EFI_MTFTP4_OPCODE_RRQ) ||
|
||||||
(OpCode == EFI_MTFTP4_OPCODE_DIR) ||
|
(OpCode == EFI_MTFTP4_OPCODE_DIR) ||
|
||||||
|
@ -512,7 +512,7 @@ Mtftp4Retransmit (
|
||||||
UDP_END_POINT UdpPoint;
|
UDP_END_POINT UdpPoint;
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
UINT16 OpCode;
|
UINT16 OpCode;
|
||||||
UINT16 Value;
|
UINT8 *Buffer;
|
||||||
|
|
||||||
ASSERT (Instance->LastPacket != NULL);
|
ASSERT (Instance->LastPacket != NULL);
|
||||||
|
|
||||||
|
@ -522,9 +522,9 @@ Mtftp4Retransmit (
|
||||||
//
|
//
|
||||||
// Set the requests to the listening port, other packets to the connected port
|
// Set the requests to the listening port, other packets to the connected port
|
||||||
//
|
//
|
||||||
Value = *(UINT16 *) NetbufGetByte (Instance->LastPacket, 0, NULL);
|
Buffer = NetbufGetByte (Instance->LastPacket, 0, NULL);
|
||||||
ASSERT (Value != NULL);
|
ASSERT (Buffer != NULL);
|
||||||
OpCode = NTOHS (Value);
|
OpCode = NTOHS (*(UINT16 *) Buffer);
|
||||||
|
|
||||||
if ((OpCode == EFI_MTFTP4_OPCODE_RRQ) || (OpCode == EFI_MTFTP4_OPCODE_DIR) ||
|
if ((OpCode == EFI_MTFTP4_OPCODE_RRQ) || (OpCode == EFI_MTFTP4_OPCODE_DIR) ||
|
||||||
(OpCode == EFI_MTFTP4_OPCODE_WRQ)) {
|
(OpCode == EFI_MTFTP4_OPCODE_WRQ)) {
|
||||||
|
|
Loading…
Reference in New Issue