tftp_options
char *tftp_options[128] = { 0 };
tftp_options[option_idx] = val;
if (strcasecmp(tftp_options[i], "blksize") == 0) {
tftp_set_blksize(h, tftp_options[i + 1]);
} else if (strcasecmp(tftp_options[i], "tsize") == 0) {
tsize = strtol(tftp_options[i + 1], NULL, 10);
tftp_options[i]);
tftp_parse_oack(char *buf, size_t size, struct tftp_options *opts)
static char tftp_options[128];
tftp_options[0] = '\0';
while (size > 0 && idx < sizeof (tftp_options)) {
tftp_options[idx++] = ' ';
tftp_options[idx] = '\0';
if (idx + strnlen(buf, size) + 1 > sizeof (tftp_options))
tftp_options[idx] = buf[i];
if (tftp_options[idx] == '\0') {
if (idx + 3 > sizeof (tftp_options))
strcat(tftp_options, ": ");
if (idx + strnlen(buf, size) + 1 > sizeof (tftp_options))
tftp_options[idx] = buf[i];
if (tftp_options[idx] == '\0') {
return (tftp_options);
static char *tftp_parse_oack(char *, size_t, struct tftp_options *);
struct tftp_options opts;