pxe/tftpboot work - Allow multiple responses to broadcast query
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 15 Feb 2009 12:04:44 +0000 (04:04 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 15 Feb 2009 12:04:44 +0000 (04:04 -0800)
commit0ea818e2fa5ffc5e34a0ecd11c4fc7189e46512b
treeb97cf8849fda77d5d6293f832820fb50e93dc421
parentbe3dc79f2c18ea07647acb8fac30ffb643161913
pxe/tftpboot work - Allow multiple responses to broadcast query

The PXE boot loader may use a broadcast address to query for files via
TFTP, resulting in multiple responses.  Accept the first DATA response
and keep track of the last ERROR response if no DATA response is received.

The first DATA packet locks the server IP for the tftp transfer.

Bring in some structure options (__packed, etc) from FreeBSD plus a fix
to an address increment in the code.
lib/libstand/tftp.c
sys/boot/pc32/libi386/pxe.c