Commit graph

66 commits

Author SHA1 Message Date
Joseph C. Lehner
2c11c7e3c4 Add IP instead of replacing it 2016-11-12 16:44:15 +01:00
Joseph C. Lehner
2cf812dcfe Don't require user to specify -a anymore 2016-11-12 15:40:26 +01:00
Joseph C. Lehner
f38833e940 Add ARPinger 2016-11-12 13:48:28 +01:00
Joseph C. Lehner
6709ee6090 Use ul_timeout upon receipt of KEEP_ALIVE_REQ 2016-08-12 10:44:43 +02:00
Joseph C. Lehner
f7bd9d5478 Remove unneccessary printfs 2016-08-10 15:11:19 +02:00
Joseph C. Lehner
a3338dc16c Merge branch 'master' of https://github.com/jclehner/nmrpflash 2016-08-09 17:20:13 +02:00
Joseph C. Lehner
a5798dead5 Fix unitialized warning 2016-08-09 17:20:24 +02:00
Joseph C. Lehner
bc6007beb7 Merge branches 2016-08-09 17:17:01 +02:00
Joseph C. Lehner
2f8cdc5567 Remove unneccessary message 2016-08-09 17:01:40 +02:00
Joseph C. Lehner
d467995236 Actually bail out after sending CLOSE_REQ 2016-08-09 12:21:10 +02:00
Joseph C. Lehner
a050f74bce Create static ARP entry for device 2016-08-09 12:16:47 +02:00
Joseph C. Lehner
dff7f25bdd Fix crash when using -c 2016-08-09 09:25:29 +02:00
Joseph C. Lehner
0179e419dc Fix uninitialized warning 2016-03-19 15:37:07 +01:00
Joseph C. Lehner
fb8143470f Doc updates 2016-02-18 22:23:00 +01:00
Joseph C. Lehner
d7caf78f5e Accept pretty names for -R instead of codes 2016-02-18 22:11:12 +01:00
Joseph C. Lehner
cbb94be759 Send correct region value 2016-02-18 21:58:23 +01:00
Joseph C. Lehner
ae55407452 Use msg_opt_add 2016-02-18 21:55:19 +01:00
Joseph C. Lehner
a0d202c45d Fix crash in msg_dump if opt->len == 0 2016-02-18 19:35:57 +01:00
Joseph C. Lehner
9371642c96 Add msg_add_opt 2016-02-18 19:14:52 +01:00
Joseph C. Lehner
bc0901e83f Send keep-alive request to remote after successful upload 2016-02-17 14:14:19 +01:00
Joseph C. Lehner
b95bfc96e5 Reset timeout when receiving extra upload requests 2016-02-17 14:10:54 +01:00
Joseph C. Lehner
57a275312c Better handling of extra upload requests 2016-02-17 12:42:20 +01:00
Joseph C. Lehner
68501ff596 Better handling of extra upload requests 2016-02-17 12:31:31 +01:00
Joseph C. Lehner
758d301c31 Shorten pathname in status message 2016-02-17 12:19:43 +01:00
Joseph C. Lehner
61980e136e Ignore additional upload requests 2016-02-17 12:14:16 +01:00
Joseph C. Lehner
d947fbc333 Filename is already corrected by tftp code 2016-02-16 17:41:55 +01:00
Joseph C. Lehner
bc43f07291 Don't break if using the client-supplied filename 2016-02-14 23:01:58 +01:00
Joseph C. Lehner
23f1eb2469 Show different message if no upload requests were received 2016-02-14 00:04:03 +01:00
Joseph C. Lehner
66d3a4431f Fix msg_opt_data 2016-02-13 23:54:51 +01:00
Joseph C. Lehner
dc8851a553 Don't expect specific message code after TFTP upload 2016-02-13 23:51:04 +01:00
Joseph C. Lehner
9f51230d21 Better handling of keep-alive requests 2016-02-13 23:49:38 +01:00
Joseph C. Lehner
34698c8813 Pretty-print message codes 2016-02-13 23:47:07 +01:00
Joseph C. Lehner
ae05a62666 Add and use ethsock_for_each_ip 2016-02-13 16:16:51 +01:00
Joseph C. Lehner
1b3bb6779b Check if ip address is valid for given interface 2016-02-13 16:14:59 +01:00
Joseph C. Lehner
efb7442a15 Show interface name in "Advertising" message 2016-02-13 13:35:01 +01:00
Joseph C. Lehner
a6c40ee917 Add code to support setting the device region 2016-02-12 14:48:42 +01:00
Joseph C. Lehner
54e4724b9a Add and use file_remote 2016-02-12 14:37:26 +01:00
Joseph C. Lehner
98607d141b nmrpd_args::filename -> file_local 2016-02-12 14:16:55 +01:00
Joseph C. Lehner
9fd1b968b4 Read filename from NMRP TFTP upload request 2016-02-12 14:14:12 +01:00
Joseph C. Lehner
41cc1b6885 Some changes related to "-f -" 2016-02-12 13:25:53 +01:00
Joseph C. Lehner
78ae82e5a3 Tell user to reboot device after successful flash 2016-02-12 13:24:35 +01:00
Joseph C. Lehner
32914803f3 Add -c switch to execute command before (or instead of) TFTP upload 2016-02-12 12:24:38 +01:00
Joseph C. Lehner
936219b598 Support reading from stdin using "-f -" 2016-02-11 22:36:22 +01:00
Joseph C. Lehner
904a81b50e nmrp-flash -> nmrpflash 2016-02-08 16:21:57 +01:00
Joseph C. Lehner
e0cec73349 Use mac_to_str 2016-02-08 13:57:57 +01:00
Joseph C. Lehner
7fb13a8e12 More verbose error message 2016-02-08 11:55:49 +01:00
Joseph C. Lehner
917b2d9578 Adjust tftp_put return values 2016-02-08 11:55:25 +01:00
Joseph C. Lehner
5da29e5109 Fix whitespace errors 2016-02-06 19:49:36 +02:00
Joseph C. Lehner
e315ecf3d2 Don't call msg_hdr_ntoh twice 2016-02-06 19:32:46 +02:00
Joseph C. Lehner
4beccaac20 Remove ethsock.h 2016-02-05 20:27:48 +02:00