VirtualBox

Ticket #3532: diff.tftp

File diff.tftp, 572 bytes (added by Martin Forssen, 16 years ago)

Patch which fixes the problem

Line 
1--- virtualbox-ose-2.1.4-dfsg.orig/src/VBox/Devices/PC/Etherboot-src/core/nic.c 2009-02-16 16:53:36.000000000 +0100
2+++ virtualbox-ose-2.1.4-dfsg/src/VBox/Devices/PC/Etherboot-src/core/nic.c 2009-03-13 08:44:38.000000000 +0100
3@@ -841,7 +841,7 @@
4 }
5 } break;
6 case TFTP_DATA :
7- if ( ntohs(rcvd->u.data.block) != ( blockidx + 1 ) )
8+ if ( ntohs(rcvd->u.data.block) != (unsigned short)( blockidx + 1 ) )
9 break; /* Re-ACK last block sent */
10 if ( recvlen > ( blksize+sizeof(rcvd->u.data.block) ) )
11 break; /* Too large; ignore */

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy