diff options
| author | Michael Koenig <michael.koenig@lancom.de> | 2015-08-17 17:54:47 +0200 | 
|---|---|---|
| committer | Jay Satiro <raysatiro@yahoo.com> | 2016-02-23 03:00:58 -0500 | 
| commit | 9dc3eaee2901875d87690de62b427fa7cf96fead (patch) | |
| tree | f03514557182af69b01efe10732f168a295678fa /lib/urldata.h | |
| parent | 527e86b0548938fa70d98117d94f84050ade09c7 (diff) | |
TFTP: add option to suppress TFTP option requests (Part 1)
Some TFTP server implementations ignore the "TFTP Option extension"
(RFC 1782-1784, 2347-2349), or implement it in a flawed way, causing
problems with libcurl. Another switch for curl_easy_setopt
"CURLOPT_TFTP_NO_OPTIONS" is introduced which prevents libcurl from
sending TFTP option requests to a server, avoiding many problems caused
by faulty implementations.
Bug: https://github.com/curl/curl/issues/481
Diffstat (limited to 'lib/urldata.h')
| -rw-r--r-- | lib/urldata.h | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/lib/urldata.h b/lib/urldata.h index ab26c0111..fcb17561d 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -1499,7 +1499,8 @@ struct UserDefined {    long connecttimeout;  /* in milliseconds, 0 means no timeout */    long accepttimeout;   /* in milliseconds, 0 means no timeout */    long server_response_timeout; /* in milliseconds, 0 means no timeout */ -  long tftp_blksize ; /* in bytes, 0 means use default */ +  long tftp_blksize;    /* in bytes, 0 means use default */ +  bool tftp_no_options; /* do not send TFTP options requests */    curl_off_t filesize;  /* size of file to upload, -1 means unknown */    long low_speed_limit; /* bytes/second */    long low_speed_time;  /* number of seconds */ | 
