[tftp] Explicitly abort connection whenever parent interface is closed
authorMichael Brown <mcb30@ipxe.org>
Fri, 6 Feb 2015 12:08:54 +0000 (12:08 +0000)
committerMichael Brown <mcb30@ipxe.org>
Fri, 6 Feb 2015 12:08:54 +0000 (12:08 +0000)
commit2dfdcae938b3aaae2cb5d48bf2cf45c23ee4b312
treead86235986f8e37da0a9cd249017ab84032aed60
parent2d3f2b24465cfd270066e60e2daa36aa879ca89b
[tftp] Explicitly abort connection whenever parent interface is closed

Fetching the TFTP file size is currently implemented via a custom
"tftpsize://" protocol hack.  Generalise this approach to instead
close the TFTP connection whenever the parent data-transfer interface
is closed.

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