projects
/
oweals
/
nmrpflash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b95bfc9
)
Send keep-alive request to remote after successful upload
v0.9.2
author
Joseph C. Lehner
<joseph.c.lehner@gmail.com>
Wed, 17 Feb 2016 13:14:19 +0000
(14:14 +0100)
committer
Joseph C. Lehner
<joseph.c.lehner@gmail.com>
Wed, 17 Feb 2016 13:14:19 +0000
(14:14 +0100)
nmrp.c
patch
|
blob
|
history
diff --git
a/nmrp.c
b/nmrp.c
index a15530cc92998a03ceaa7cf5b59dbcf219eef3ff..ae9fc32700d415cf7bab90d7ffdb695f87c958bf 100644
(file)
--- a/
nmrp.c
+++ b/
nmrp.c
@@
-531,6
+531,7
@@
int nmrp_do(struct nmrpd_args *args)
printf("Ignoring extra upload request.\n");
}
ethsock_set_timeout(sock, args->ul_timeout);
+ tx.msg.code = NMRP_C_KEEP_ALIVE_REQ;
break;
}
@@
-589,6
+590,7
@@
int nmrp_do(struct nmrpd_args *args)
printf("OK\nWaiting for remote to respond.\n");
upload_ok = 1;
ethsock_set_timeout(sock, args->ul_timeout);
+ tx.msg.code = NMRP_C_KEEP_ALIVE_REQ;
expect = NMRP_C_NONE;
} else if (status == -2) {
expect = NMRP_C_TFTP_UL_REQ;