• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/curl-7.23.1/lib/

Lines Matching defs:blksize

79 #define TFTP_OPTION_BLKSIZE "blksize"
148 int blksize;
346 /* if OACK doesn't contain blksize option, the default (512) must be used */
347 state->blksize = TFTP_BLKSIZE_DEFAULT;
361 long blksize;
363 blksize = strtol( value, NULL, 10 );
365 if(!blksize) {
369 else if(blksize > TFTP_BLKSIZE_MAX) {
370 failf(data, "%s (%d)", "blksize is larger than max supported",
374 else if(blksize < TFTP_BLKSIZE_MIN) {
375 failf(data, "%s (%d)", "blksize is smaller than min supported",
379 else if(blksize > state->requested_blksize) {
381 * support for the server requesting a bigger blksize than the client
384 "server requested blksize larger than allocated", blksize);
388 state->blksize = (int)blksize;
389 infof(data, "%s (%d) %s (%d)\n", "blksize parsed from OACK",
390 state->blksize, "requested", state->requested_blksize);
416 if(( strlen(option) + csize + 1 ) > (size_t)state->blksize)
501 state->blksize,
516 /* add blksize option */
616 if(state->rbytes < (ssize_t)state->blksize+4) {
753 if(state->block > 1 && state->sbytes < (int)state->blksize) {
757 res = Curl_fillreadbuffer(state->conn, state->blksize, &state->sbytes);
943 int blksize, rc;
945 blksize = TFTP_BLKSIZE_DEFAULT;
955 /* alloc pkt buffers based on specified blksize */
957 blksize = (int)conn->data->set.tftp_blksize;
958 if(blksize > TFTP_BLKSIZE_MAX || blksize < TFTP_BLKSIZE_MIN )
963 state->rpacket.data = calloc(1, blksize + 2 + 2);
970 state->spacket.data = calloc(1, blksize + 2 + 2);
984 state->blksize = TFTP_BLKSIZE_DEFAULT;
985 state->requested_blksize = blksize;
1085 state->blksize+4,
1217 data->progress.ulspeed, state->blksize);
1228 data->progress.dlspeed, state->blksize);