Searched refs:tftp_options (Results 1 - 8 of 8) sorted by relevance
/haiku-fatelf/src/bin/network/atftpd/ |
H A D | tftp_io.c | 47 struct tftp_opt *tftp_options) 53 char *filename = tftp_options[OPT_FILENAME].value; 54 char *mode = tftp_options[OPT_MODE].value; 69 if (strlen(tftp_options[i].option) == 0) 71 if (tftp_options[i].enabled && tftp_options[i].specified) 73 Strncpy(data_buffer + buf_index, tftp_options[i].option, 75 buf_index += strlen(tftp_options[i].option); 77 Strncpy(data_buffer + buf_index, tftp_options[i].value, 79 buf_index += strlen(tftp_options[ 45 tftp_send_request(int socket, struct sockaddr_in *sa, short type, char *data_buffer, int data_buffer_size, struct tftp_opt *tftp_options) argument 118 tftp_send_oack(int socket, struct sockaddr_in *sa, struct tftp_opt *tftp_options, char *buffer, int buffer_size) argument [all...] |
H A D | tftp_io.h | 44 struct tftp_opt *tftp_options); 46 int tftp_send_oack(int socket, struct sockaddr_in *s_inn, struct tftp_opt *tftp_options,
|
H A D | tftpd_file.c | 128 if (strcasecmp(data->tftp_options[OPT_MODE].value, "netascii") == 0) 135 Strncpy(filename, data->tftp_options[OPT_FILENAME].value, 159 if (((result = opt_get_tsize(data->tftp_options)) > -1) && !convert) 161 opt_set_tsize(result, data->tftp_options); 166 if ((result = opt_get_timeout(data->tftp_options)) > -1) 178 opt_set_timeout(timeout, data->tftp_options); 183 if ((result = opt_get_blksize(data->tftp_options)) > -1) 215 opt_set_blksize(result, data->tftp_options); 236 if (opt_support_options(data->tftp_options)) 253 tftp_send_oack(sockfd, sa, data->tftp_options, [all...] |
H A D | tftpd_mtftp.h | 37 struct tftp_opt *tftp_options; member in struct:mtftp_data
|
H A D | tftpd_mtftp.c | 96 if ((data->tftp_options = 115 memcpy(data->tftp_options, tftp_default_options, 117 data->tftp_options[OPT_TIMEOUT].enabled = 0; 118 data->tftp_options[OPT_TSIZE].enabled = 0; 119 data->tftp_options[OPT_BLKSIZE].enabled = 0; 120 data->tftp_options[OPT_MULTICAST].enabled = 0; 267 if (data->tftp_options) 268 free(data->tftp_options); 410 data->tftp_options); 411 opt_request_to_string(data->tftp_options, strin [all...] |
H A D | tftpd.h | 56 struct tftp_opt *tftp_options; member in struct:thread_data
|
H A D | tftpd_list.c | 141 struct tftp_opt *tftp_options = data->tftp_options; local 150 opt_request_to_string(tftp_options, options, MAXLEN); 165 opt_request_to_string(current->tftp_options, string, MAXLEN);
|
H A D | tftpd.c | 436 if ((new->tftp_options = 445 memcpy(new->tftp_options, tftp_default_options, 650 data->tftp_options); 651 opt_request_to_string(data->tftp_options, string, MAXLEN); 663 data->tftp_options[OPT_FILENAME].value, 676 data->tftp_options[OPT_FILENAME].value); 729 free(data->tftp_options);
|
Completed in 207 milliseconds