Efi_pxe_base_code.udpread(), Udpread(), Func – Intel Extensible Firmware Interface User Manual
Page 662

Extensible Firmware Interface Specification
15-56
12/01/02
Version 1.10
EFI_PXE_BASE_CODE.UdpRead()
Summary
Reads a UDP packet from the network interface.
Prototype
EFI_STATUS
(EFIAPI *EFI_PXE_BASE_CODE_UDP_READ) (
IN
EFI_PXE_BASE_CODE
*This
IN
UINT16
OpFlags,
IN OUT EFI_IP_ADDRESS
*DestIp,
OPTIONAL
IN OUT EFI_PXE_BASE_CODE_UDP_PORT
*DestPort, OPTIONAL
IN OUT EFI_IP_ADDRESS
*SrcIp,
OPTIONAL
IN OUT EFI_PXE_BASE_CODE_UDP_PORT
*SrcPort,
OPTIONAL
IN UINTN
*HeaderSize,
OPTIONAL
IN VOID
*HeaderPtr,
OPTIONAL
IN OUT UINTN
*BufferSize,
IN VOID
*BufferPtr
);
Parameters
This
Pointer to the
instance.
OpFlags
The UDP operation flags.
DestIp
The destination IP address.
DestPort
The destination UDP port number.
SrcIp
The source IP address.
SrcPort
The source UDP port number.
HeaderSize
An optional field which may be set to the length of a header to be put in
HeaderPtr
.
HeaderPtr
If
HeaderSize
is not
NULL
, a pointer to a buffer to hold the
HeaderSize
bytes which follow the UDP header.
BufferSize
On input, a pointer to the size of the buffer at
BufferPtr
. On output,
the size of the data written to
BufferPtr
.
BufferPtr
A pointer to the data to be read.