Daniel Stenberg
c811e1ce70
oops, could return an uninitialized variable
2006-05-09 13:02:53 +00:00
Daniel Stenberg
094ceeba14
check more return codes and skip the initial slash in given file names
2006-05-08 22:23:33 +00:00
Daniel Stenberg
3b7359a27a
no longer uses errno but Curl_sockerrno() and now acknowledges return codes
...
from Curl_client_write
2006-05-08 21:00:44 +00:00
Dan Fandrich
df9108e19b
Stop sending retransmitted received blocks up to client
...
Fixed handling of retransmitted blocks on transmit
Properly aligned data to transmit within packet
Replaced calls to strerror() with Curl_strerror()
2006-05-08 19:41:26 +00:00
Daniel Stenberg
6307e783d8
Fixed known bug #28 . The TFTP code no longer assumes a packed struct and
...
thus works reliably on more platforms.
2006-05-08 15:09:50 +00:00
Daniel Stenberg
e85e30546c
Roland Blom filed bug report #1481217
...
(http://curl.haxx.se/bug/view.cgi?id=1481217 ), with follow-ups by Michele Bini
and David Byron. libcurl previously wrongly used GetLastError() on windows to
get error details after socket-related function calls, when it really should
use WSAGetLastError() instead.
When changing to this, the former function Curl_ourerrno() is now instead
called Curl_sockerrno() as it is necessary to only use it to get errno from
socket-related functions as otherwise it won't work as intended on Windows.
2006-05-04 22:39:47 +00:00
Daniel Stenberg
5a4b43848a
First commit of David McCreedy's EBCDIC and TPF changes.
2006-04-07 21:50:47 +00:00
Daniel Stenberg
3dad55d7a8
Tor Arntsen figured out that TFTP was broken on a lot of systems since we
...
called bind() with a too big argument in the 3rd parameter and at least
Tru64, AIX and IRIX seem to be very picky about it.
2006-03-26 08:52:43 +00:00
Dan Fandrich
a63f9887b9
Fixed a bug whereby a received file whose length was a multiple of
...
512 bytes could have random garbage appended. Also, stop processing TFTP
packets which are too short to be legal.
2006-03-20 22:15:22 +00:00
Daniel Stenberg
5975229919
fixed tftp packet overflow risk
2006-03-20 07:32:50 +00:00
Yang Tse
6a0ed81e67
Fix compiler warning
2005-12-08 20:38:04 +00:00
Dan Fandrich
8c6f654b26
Added a run-time check to warn if TFTP is going to fail due to portability
...
issues in the code.
2005-12-05 20:07:05 +00:00
Daniel Stenberg
272231fb09
Another Yang Tse warning cleanup raid!
2005-12-05 14:10:48 +00:00
Daniel Stenberg
feacad7f68
Yang Tse fixed the 4th argument in the sendto() calls
2005-12-02 23:22:00 +00:00
Daniel Stenberg
05a6013f42
Yang Tse's patch to silence MSVC warnings
2005-11-23 22:59:24 +00:00
Gisle Vanem
280e4bf4c3
Fix for WIN32. WIN32 does have 'struct sockaddr_storage', but
...
that's in <winsock2.h>. Hence tftp.c wouldn't compile on WinCE.
2005-11-13 13:20:37 +00:00
Daniel Stenberg
a5da1219bb
Reversed the logic for sockaddr_storage and made our own Curl_sockaddr_storage
...
struct instead to use.
2005-11-12 22:10:42 +00:00
Daniel Stenberg
37a6a0bb3e
Moved the sockaddr_storage definition to lib/sockaddr.h and only include that
...
in files that actually need the struct.
2005-11-11 22:04:11 +00:00
Daniel Stenberg
ae9fbe573e
David Lang fixed IPv6 support for TFTP!
2005-11-10 22:25:07 +00:00
Daniel Stenberg
bd5a622400
stricter type usage for time variables to avoid picky compiler warnings
2005-09-21 11:28:40 +00:00
Daniel Stenberg
1cf798ad14
typecasts added in an attempt to please the picky compilers
2005-09-20 06:51:23 +00:00
Daniel Stenberg
97a6d7b1a8
minor changes, the biggest one being using Curl_select()
2005-09-15 20:21:27 +00:00
Gisle Vanem
9e38d882b9
Fix for bind() on Winsock; AF_UNSPEC (0) is illegal.
...
Should we do this for all targets?
2005-09-06 15:43:14 +00:00
Daniel Stenberg
e8b77477c7
sockets are curl_socket_t to build cleaner
2005-09-06 10:39:01 +00:00
Daniel Stenberg
a3d776187a
check that bind() returns success
2005-09-04 18:33:20 +00:00
Daniel Stenberg
56d9624b56
John Kelly added TFTP support to libcurl. A bunch of new error codes was
...
added. TODO: add them to docs. add TFTP server to test suite. add TFTP to
list of protocols whereever those are mentioned.
2005-09-02 15:11:08 +00:00