Lines Matching defs:error
113 /* The remaining error codes are internal to curl */
126 tftp_error_t error;
163 static CURLcode tftp_translate_code(tftp_error_t error);
447 state->error = TFTP_ERR_NORESPONSE;
562 failf(state->data, "tftp_send_first: internal error");
660 state->error = TFTP_ERR_TIMEOUT;
689 failf(data, "%s", "tftp_rx: internal error");
804 state->error = TFTP_ERR_TIMEOUT;
836 failf(data, "tftp_tx: internal error, event: %i", (int)(event));
847 * Translate internal error codes to CURL error codes
850 static CURLcode tftp_translate_code(tftp_error_t error)
854 if(error != TFTP_ERR_NONE) {
855 switch(error) {
926 failf(data, "%s", "Internal state machine error");
1009 state->error = TFTP_ERR_NONE;
1070 /* If we have encountered an error */
1072 result = tftp_translate_code(state->error);
1147 unsigned short error = getrpacketblock(&state->rpacket);
1150 state->error = (tftp_error_t)error;
1152 infof(data, "TFTP error: %s", str);
1167 failf(data, "%s", "Internal error: Unexpected packet");
1201 state->error = TFTP_ERR_TIMEOUT;
1251 int error = SOCKERRNO;
1253 failf(data, "%s", Curl_strerror(error, buffer, sizeof(buffer)));
1360 /* If tftp_perform() returned an error, use that for return code. If it
1361 was OK, see if tftp_translate_code() has an error. */
1363 /* If we have encountered an internal tftp error, translate it. */
1364 result = tftp_translate_code(state->error);