Lines Matching refs:blksize

139   int             blksize;  member
318 state->blksize = TFTP_BLKSIZE_DEFAULT; in tftp_parse_option_ack()
332 long blksize; in tftp_parse_option_ack() local
334 blksize = strtol(value, NULL, 10); in tftp_parse_option_ack()
336 if(!blksize) { in tftp_parse_option_ack()
340 if(blksize > TFTP_BLKSIZE_MAX) { in tftp_parse_option_ack()
345 else if(blksize < TFTP_BLKSIZE_MIN) { in tftp_parse_option_ack()
350 else if(blksize > state->requested_blksize) { in tftp_parse_option_ack()
355 "server requested blksize larger than allocated", blksize); in tftp_parse_option_ack()
359 state->blksize = (int)blksize; in tftp_parse_option_ack()
361 state->blksize, "requested", state->requested_blksize); in tftp_parse_option_ack()
387 if(( strlen(option) + *csize + 1) > (size_t)state->blksize) in tftp_option_add()
470 if(strlen(filename) > (state->blksize - strlen(mode) - 4)) { in tftp_send_first()
477 state->blksize, in tftp_send_first()
620 if(state->rbytes < (ssize_t)state->blksize + 4) { in tftp_rx()
762 if(state->block > 1 && state->sbytes < state->blksize) { in tftp_tx()
774 result = Curl_client_read(data, bufptr, state->blksize - state->sbytes, in tftp_tx()
780 } while(state->sbytes < state->blksize && cb); in tftp_tx()
967 int blksize; in tftp_connect() local
971 blksize = TFTP_BLKSIZE_DEFAULT; in tftp_connect()
980 blksize = (int)data->set.tftp_blksize; in tftp_connect()
982 need_blksize = blksize; in tftp_connect()
1009 state->blksize = TFTP_BLKSIZE_DEFAULT; /* Unless updated by OACK response */ in tftp_connect()
1010 state->requested_blksize = blksize; in tftp_connect()
1109 (RECV_TYPE_ARG3)state->blksize + 4, in tftp_receive_packet()