aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/tftp/tftp.c
diff options
context:
space:
mode:
authorJeroen Ruigrok van der Werven <asmodai@FreeBSD.org>2001-02-02 10:53:02 +0000
committerJeroen Ruigrok van der Werven <asmodai@FreeBSD.org>2001-02-02 10:53:02 +0000
commit67034ac6ad0834d9e35cd79dbbb426490c9a4922 (patch)
treedd5a044998929a530130a2da8c6ce3902ae7e84a /usr.bin/tftp/tftp.c
parent294156a7ffd32f01b83ee84926e899d111e32883 (diff)
Fix tftpd and tftp to support file transfers of over 65535 blocks
(about 31 MB - 32 MB). Submitted (partially) by: Pascal Hofstee <daeron@wit401305.student.utwente.nl>
Notes
Notes: svn path=/head/; revision=71926
Diffstat (limited to 'usr.bin/tftp/tftp.c')
-rw-r--r--usr.bin/tftp/tftp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/tftp/tftp.c b/usr.bin/tftp/tftp.c
index 9dc00afeddba..e7dc82473802 100644
--- a/usr.bin/tftp/tftp.c
+++ b/usr.bin/tftp/tftp.c
@@ -96,7 +96,8 @@ xmitfile(fd, name, mode)
register struct tftphdr *ap; /* data and ack packets */
struct tftphdr *r_init(), *dp;
register int n;
- volatile int block, size, convert;
+ volatile unsigned short block;
+ volatile int size, convert;
volatile unsigned long amount;
struct sockaddr_in from;
int fromlen;
@@ -201,7 +202,8 @@ recvfile(fd, name, mode)
register struct tftphdr *ap;
struct tftphdr *dp, *w_init();
register int n;
- volatile int block, size, firsttrip;
+ volatile unsigned short block;
+ volatile int size, firsttrip;
volatile unsigned long amount;
struct sockaddr_in from;
int fromlen;