Package: etherboot
Version: 5.4.2-1.1
Severity: important
Tags: patch

The tftp_open command does not return the negotiated size of a
TFTP packet. The attached patch fix this.


        Bernhard Kauer

--- etherboot-5.4.2.orig/src/core/nic.c
+++ etherboot-5.4.2/src/core/nic.c
@@ -847,6 +848,8 @@
 		udp_transmit ( arptable[ARP_SERVER].ipaddr.s_addr,
 			       lport, rport, xmitlen, &xmit );
 	}
+	if (request && blksize)
+	  request->blksize = blksize;
 	return ( block->data ? 1 : 0 );
 }
 #endif	/* DOWNLOAD_PROTO_TFTP */

Reply via email to