https://bugzilla.novell.com/show_bug.cgi?id=372918
User psladek@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=372918#c2
Pavel Sladek changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |taroth@novell.com, psladek@novell.com
AssignedTo|ms@novell.com |bnc-team-screening@forge.provo.novell.com
Status|NEEDINFO |NEW
Info Provider|psladek@novell.com |
--- Comment #2 from Pavel Sladek 2008-04-03 10:07:30 MST ---
I have observed that the maximum block size indeed leads to the aforementioned
problem. The particlar message was:
<Failure to negotiate RFC1782 options>
which, after searching in the atftp source code, lead to the discovery of a
check in the tftpd_file.c on line 185
(http://csourcesearch.net/package/atftp/0.7/atftp-0.7/tftpd_file.c) :
.
.
if ((result < 8) || (result > 65464)) {
tftp_send_error(sockfd, sa, EOPTNEG, data->data_buffer,
data->data_buffer_size);
.
.
where EOPTNEG=8 which indexes our message in the tftp_errmsg array
(http://csourcesearch.net/package/atftp/0.7/atftp-0.7/tftp_def.c,
http://csourcesearch.net/package/atftp/0.7/atftp-0.7/tftp_io.h)
Therefore it appears that the blocksize has indeed an upper bound, 65464. This
leads to maximum transferable file size ~4GB, in agreement with specification.
I have also tested this experimentally - if blocksize=65464, image uploads and
installs well, but for 65465, this fails.
So I recomend update the checking for the maximum blocksize too.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.