[pxe] Maintain a queue for received PXE UDP packets
authorMichael Brown <mcb30@ipxe.org>
Fri, 6 Feb 2015 14:13:26 +0000 (14:13 +0000)
committerMichael Brown <mcb30@ipxe.org>
Fri, 6 Feb 2015 14:16:31 +0000 (14:16 +0000)
commit95bc563f0cdfb380b49b99d0e03f49d3739d3802
tree9cb73907cd2ed9408ed7b03bde0de3a4f94235cc
parentc9dbe1d39caa6a8b2eda84e7f3e7e83bd9bbe4a5
[pxe] Maintain a queue for received PXE UDP packets

Some devices return multiple packets in a single poll.  Handle such
devices gracefully by enqueueing received PXE UDP packets (along with
a pseudo-header to hold the IPv4 addresses and port numbers) and
dequeueing them on subsequent calls to PXENV_UDP_READ.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/interface/pxe/pxe_udp.c