http://git.etherboot.org
/
people
/
balajirrao
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f1518b
)
Quick hack to be able to accept transfers from servers that don't
author
Michael Brown
<mcb30@etherboot.org>
Sun, 25 Nov 2007 16:06:29 +0000
(16:06 +0000)
committer
Michael Brown
<mcb30@etherboot.org>
Sun, 25 Nov 2007 16:06:29 +0000
(16:06 +0000)
supply options.
src/net/udp/tftp.c
patch
|
blob
|
history
diff --git
a/src/net/udp/tftp.c
b/src/net/udp/tftp.c
index
194c533
..
354f825
100644
(file)
--- a/
src/net/udp/tftp.c
+++ b/
src/net/udp/tftp.c
@@
-433,6
+433,8
@@
static int tftp_rx_data ( struct tftp_request *tftp,
data_len = iob_len ( iobuf );
/* Check for correct block */
+ if ( ( tftp->state == -1 ) && ( block == 1 ) )
+ tftp->state = 0;
if ( block != ( tftp->state + 1 ) ) {
DBGC ( tftp, "TFTP %p received out-of-order block %d "
"(expecting %d)\n", tftp, block, ( tftp->state + 1 ) );