Lines 525-530
Link Here
|
525 |
fprintf(stderr, " multicast: enabled\n"); |
525 |
fprintf(stderr, " multicast: enabled\n"); |
526 |
else |
526 |
else |
527 |
fprintf(stderr, " multicast: disabled\n"); |
527 |
fprintf(stderr, " multicast: disabled\n"); |
|
|
528 |
if (data.tftp_options[OPT_PASSWORD].specified) |
529 |
fprintf(stderr, " password: enabled\n"); |
530 |
else |
531 |
fprintf(stderr, " password: disabled\n"); |
528 |
return ERR; |
532 |
return ERR; |
529 |
} |
533 |
} |
530 |
/* if disabling an option */ |
534 |
/* if disabling an option */ |
Lines 971-976
Link Here
|
971 |
{ "put", 0, NULL, 'p'}, |
975 |
{ "put", 0, NULL, 'p'}, |
972 |
{ "local-file", 1, NULL, 'l'}, |
976 |
{ "local-file", 1, NULL, 'l'}, |
973 |
{ "remote-file", 1, NULL, 'r'}, |
977 |
{ "remote-file", 1, NULL, 'r'}, |
|
|
978 |
{ "password", 1, NULL, 'P'}, |
974 |
{ "tftp-timeout", 1, NULL, 'T'}, |
979 |
{ "tftp-timeout", 1, NULL, 'T'}, |
975 |
{ "mode", 1, NULL, 'M'}, |
980 |
{ "mode", 1, NULL, 'M'}, |
976 |
{ "option", 1, NULL, 'O'}, |
981 |
{ "option", 1, NULL, 'O'}, |
Lines 993-999
Link Here
|
993 |
}; |
998 |
}; |
994 |
|
999 |
|
995 |
/* Support old argument until 0.8 */ |
1000 |
/* Support old argument until 0.8 */ |
996 |
while ((c = getopt_long(argc, argv, /*"gpl:r:Vh"*/ "gpl:r:Vht:b:sm", |
1001 |
while ((c = getopt_long(argc, argv, /*"gpl:r:Vh"*/ "gpl:r:Vht:b:smP:", |
997 |
options, &option_index)) != EOF) |
1002 |
options, &option_index)) != EOF) |
998 |
{ |
1003 |
{ |
999 |
switch (c) |
1004 |
switch (c) |
Lines 1028-1033
Link Here
|
1028 |
else |
1033 |
else |
1029 |
action = PUT; |
1034 |
action = PUT; |
1030 |
break; |
1035 |
break; |
|
|
1036 |
case 'P': |
1037 |
snprintf(string, sizeof(string), "option password %s", optarg); |
1038 |
make_arg(string, &ac, &av); |
1039 |
process_cmd(ac, av); |
1040 |
break; |
1031 |
case 'l': |
1041 |
case 'l': |
1032 |
interactive = 0; |
1042 |
interactive = 0; |
1033 |
Strncpy(local_file, optarg, MAXLEN); |
1043 |
Strncpy(local_file, optarg, MAXLEN); |
Lines 1169-1174
Link Here
|
1169 |
" -p, --put : put file\n" |
1179 |
" -p, --put : put file\n" |
1170 |
" -l, --local-file <file> : local file name\n" |
1180 |
" -l, --local-file <file> : local file name\n" |
1171 |
" -r, --remote-file <file> : remote file name\n" |
1181 |
" -r, --remote-file <file> : remote file name\n" |
|
|
1182 |
" -P, --password <password>: specify password (Linksys ext.)\n" |
1172 |
" --tftp-timeout <value> : delay before retransmission, client side\n" |
1183 |
" --tftp-timeout <value> : delay before retransmission, client side\n" |
1173 |
#if 0 |
1184 |
#if 0 |
1174 |
" t, --timeout <value> : delay before retransmission, " |
1185 |
" t, --timeout <value> : delay before retransmission, " |