Author Topic: TFTP error  (Read 11347 times)

0 Members and 1 Guest are viewing this topic.

Brian Dao

  • Administrator
  • Newbie
  • *****
  • Posts: 35
  • Karma: +0/-0
TFTP error
« on: May 31, 2012, 01:24:27 pm »
Although Pinkie's TFTP Server supports RFC 2347, 2348 & 2349 which supposedly allow it to transfer files as large as 4 GB, it normally times out at block 32,767 or about 16 MB.

This is due to the way Pinkie handles the Integer value used to count the block #.  All 16 bits were supposed to be used to count the block number but I overlooked the type of variable and as it turned out, the most significant bit of the 16 (left most bit) is being used to indicate the signage (positive or negative) thus the block count instead of ranging from 0 to 65,535 became -32,768 through 32,767.
And the initial block that starts the TFTP file transfer is set to be 0 so the theoretical limit of 32 MB got reduced by 1/2 to 16 MB.  This was first discovered in v1.85 but I didn't have enough time on hand to fix it.

I'll prioritize this and get it fix soon.

Regards,
Brian
« Last Edit: July 07, 2012, 08:12:07 pm by Brian Dao »

Brian Dao

  • Administrator
  • Newbie
  • *****
  • Posts: 35
  • Karma: +0/-0
Re: TFTP error
« Reply #1 on: July 07, 2012, 08:13:37 pm »
This block number issue has been fixed and will be in the next release.


Brian