aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-01-26 22:43:06 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-01-26 22:43:06 +0000
commit0516ce7786e9500c2e447d48aa9b3f24a6ca70f9 (patch)
treedfa3ecea7658d50e0cb11b77074a5ad21699a854 /lib/url.c
parentbb86462ed77ac82667c91c93705210b67d739e6e (diff)
- Chad Monroe provided the new CURLOPT_TFTP_BLKSIZE option that allows an app
to set desired block size to use for TFTP transfers instead of the default 512 bytes.
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index 6cefda2c1..be5b20990 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -932,6 +932,12 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
*/
data->set.ftp_response_timeout = va_arg( param , long ) * 1000;
break;
+ case CURLOPT_TFTP_BLKSIZE:
+ /*
+ * TFTP option that specifies the block size to use for data transmission
+ */
+ data->set.tftp_blksize = va_arg(param, long);
+ break;
case CURLOPT_DIRLISTONLY:
/*
* An option that changes the command to one that asks for a list