Lines Matching refs:blksize

73 #define TFTP_OPTION_BLKSIZE "blksize"
139 int blksize;
317 /* if OACK doesn't contain blksize option, the default (512) must be used */
318 state->blksize = TFTP_BLKSIZE_DEFAULT;
332 long blksize;
334 blksize = strtol(value, NULL, 10);
336 if(!blksize) {
340 if(blksize > TFTP_BLKSIZE_MAX) {
341 failf(data, "%s (%d)", "blksize is larger than max supported",
345 else if(blksize < TFTP_BLKSIZE_MIN) {
346 failf(data, "%s (%d)", "blksize is smaller than min supported",
350 else if(blksize > state->requested_blksize) {
352 * support for the server requesting a bigger blksize than the client
355 "server requested blksize larger than allocated", blksize);
359 state->blksize = (int)blksize;
360 infof(data, "%s (%d) %s (%d)", "blksize parsed from OACK",
361 state->blksize, "requested", state->requested_blksize);
387 if(( strlen(option) + *csize + 1) > (size_t)state->blksize)
472 if(strlen(filename) > (state->blksize - strlen(mode) - 4)) {
479 state->blksize,
500 /* add blksize option */
624 if(state->rbytes < (ssize_t)state->blksize + 4) {
764 if(state->block > 1 && state->sbytes < state->blksize) {
776 result = Curl_fillreadbuffer(data, state->blksize - state->sbytes, &cb);
781 } while(state->sbytes < state->blksize && cb);
968 int blksize;
972 blksize = TFTP_BLKSIZE_DEFAULT;
978 /* alloc pkt buffers based on specified blksize */
981 blksize = (int)data->set.tftp_blksize;
983 need_blksize = blksize;
1010 state->blksize = TFTP_BLKSIZE_DEFAULT; /* Unless updated by OACK response */
1011 state->requested_blksize = blksize;
1111 state->blksize + 4,