PXE Base Code Protocol
Version 1.02 12/12/00 263
14.1.7 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 EFI_PXE_BASE_CODE 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.