ip/tftpd: deal with block wrap arround
This commit is contained in:
parent
66eac7d687
commit
d5c906f515
1 changed files with 2 additions and 2 deletions
|
@ -542,9 +542,9 @@ awaitack(int fd, int block)
|
|||
if (Debug)
|
||||
syslog(dbg, flog, "tftpd %d read ack of %d bytes "
|
||||
"for block %d", pid, al, ackblock);
|
||||
if(ackblock == block)
|
||||
if(ackblock == (block & 0xffff))
|
||||
return Ackok; /* for block just sent */
|
||||
else if(ackblock == block + 1) /* intel pxe eof bug */
|
||||
else if(ackblock == (block + 1 & 0xffff)) /* intel pxe eof bug */
|
||||
return Ackok;
|
||||
else if(ackblock == 0xffff)
|
||||
return Ackrexmit;
|
||||
|
|
Loading…
Reference in a new issue