Fix default timeout values
This commit is contained in:
parent
f5c4937cc9
commit
0503ae2788
1 changed files with 3 additions and 3 deletions
6
main.c
6
main.c
|
|
@ -131,8 +131,8 @@ int main(int argc, char **argv)
|
||||||
int c, val, max;
|
int c, val, max;
|
||||||
bool list = false, have_dest_mac = false;
|
bool list = false, have_dest_mac = false;
|
||||||
struct nmrpd_args args = {
|
struct nmrpd_args args = {
|
||||||
.rx_timeout = 200 * 1000,
|
.rx_timeout = 200,
|
||||||
.ul_timeout = 5 * 60 * 1000,
|
.ul_timeout = 5 * 60,
|
||||||
.tftpcmd = NULL,
|
.tftpcmd = NULL,
|
||||||
.file_local = NULL,
|
.file_local = NULL,
|
||||||
.file_remote = NULL,
|
.file_remote = NULL,
|
||||||
|
|
@ -233,7 +233,7 @@ int main(int argc, char **argv)
|
||||||
if (c == 'p') {
|
if (c == 'p') {
|
||||||
args.port = val;
|
args.port = val;
|
||||||
} else if (c == 't') {
|
} else if (c == 't') {
|
||||||
args.rx_timeout = val * 1000;
|
args.rx_timeout = val;
|
||||||
} else if (c == 'T') {
|
} else if (c == 'T') {
|
||||||
args.ul_timeout = val * 1000;
|
args.ul_timeout = val * 1000;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue