From: Michael Brown Date: Tue, 22 Jan 2008 18:53:01 +0000 (+0000) Subject: Merge branch 'master' of rom.etherboot.org:/pub/scm/gpxe X-Git-Tag: v0.9.3~15^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=122abb50af8fa823778e185961f65122ff7b4270;p=thirdparty%2Fipxe.git Merge branch 'master' of rom.etherboot.org:/pub/scm/gpxe --- 122abb50af8fa823778e185961f65122ff7b4270 diff --cc src/net/udp/tftp.c index d5f02a08a,4d441909c..e96980042 --- a/src/net/udp/tftp.c +++ b/src/net/udp/tftp.c @@@ -907,9 -764,8 +910,8 @@@ static int tftp_socket_deliver_iob ( st /** TFTP socket operations */ static struct xfer_interface_operations tftp_socket_operations = { - .close = tftp_socket_close, + .close = ignore_xfer_close, .vredirect = xfer_vopen, - .seek = ignore_xfer_seek, .window = unlimited_xfer_window, .alloc_iob = default_xfer_alloc_iob, .deliver_iob = tftp_socket_deliver_iob, @@@ -933,11 -789,30 +935,10 @@@ static int tftp_mc_socket_deliver_iob return tftp_rx ( tftp, iobuf, meta ); } -/** - * TFTP multicast connection closed by network stack - * - * @v socket Multicast transport layer interface - * @v rc Reason for close - */ -static void tftp_mc_socket_close ( struct xfer_interface *mc_socket, - int rc ) { - struct tftp_request *tftp = - container_of ( mc_socket, struct tftp_request, mc_socket ); - - DBGC ( tftp, "TFTP %p multicast socket closed: %s\n", - tftp, strerror ( rc ) ); - - /* The multicast socket may be closed when we receive a new - * OACK and open/reopen the socket; we should not call - * tftp_done() at this point. - */ -} - /** TFTP multicast socket operations */ static struct xfer_interface_operations tftp_mc_socket_operations = { - .close = tftp_mc_socket_close, + .close = ignore_xfer_close, .vredirect = xfer_vopen, - .seek = ignore_xfer_seek, .window = unlimited_xfer_window, .alloc_iob = default_xfer_alloc_iob, .deliver_iob = tftp_mc_socket_deliver_iob,