Commit graph

117 commits

Author SHA1 Message Date
Joseph C. Lehner
b564180a9d Reduce timeout for ADVERTISE packets 2022-10-08 13:44:27 +02:00
Joseph C. Lehner
5cfb5e105f Don't pad NMRP packets to 64 bytes 2022-06-17 13:13:49 +02:00
Joseph C. Lehner
b24e72c645 Skip carrier detection with Ctrl-C 2022-06-13 12:09:27 +02:00
Joseph C. Lehner
4fa516602c Show default values of some command-line options 2022-06-11 19:25:38 +02:00
Joseph C. Lehner
5d189c61b2 Don't continue in blind mode if remote does respond 2022-02-09 19:25:10 +01:00
Joseph C. Lehner
7aab07d4d9 WiFi -> Wi-Fi 2021-06-09 19:50:12 +02:00
Joseph C. Lehner
b70de725ca Don't wait for physical connection on WiFi interfaces 2021-06-06 13:32:05 +02:00
Joseph C. Lehner
afeff8eb52 Fix multiple format strings on Windows
It's a miracle this didn't blow up earlier!
2021-05-31 19:22:17 +02:00
Joseph C. Lehner
a2267b7351 Display size of uploaded firmware file 2021-05-31 17:58:55 +02:00
Joseph C. Lehner
dcedf37624 Physical -> Ethernet 2021-05-31 17:58:05 +02:00
David Keck
50171ba46b
fix minor typo 2020-12-13 22:54:56 -05:00
Joseph C. Lehner
12cefdf60f Add missing newline 2020-12-13 12:18:04 +01:00
Joseph C. Lehner
d6e2c0c4ac Implement carrier detection on BSD/macOS 2020-12-13 12:10:15 +01:00
Joseph C. Lehner
35fd6f41df Detect unplugged Ethernet cable on Windows 2020-08-18 13:01:37 +02:00
Joseph C. Lehner
25cda736e6 Increase NMRP timeout to 1s 2020-08-17 12:29:58 +02:00
Joseph C. Lehner
c0c951f4a8 Merge branch 'master' of github.com:jclehner/nmrpflash 2020-07-06 18:15:44 +02:00
Joseph C. Lehner
ec29ee610d Fuzzing related changes 2020-07-06 18:14:41 +02:00
Damyan Ivanov
6396c33402 avoid possible use of uninitialized intf_addr in nmrp_do()
Silences a warning by gcc:
 .
  nmrp.c:462:7: warning: ‘intf_addr’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  462 |   if (ethsock_ip_add(sock, intf_addr, ipmask.s_addr, &ip_undo) != 0) {
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2020-04-19 06:02:22 +00:00
Joseph C. Lehner
e95526d06c Don't print messages on fake-packet receipt 2020-03-06 18:43:03 +01:00
Joseph C. Lehner
490da10d04 Exit after successful upload in blind mode 2020-03-02 11:29:54 +01:00
Joseph C. Lehner
aca33657c0 Clarify comment regarding default IP 2020-03-02 09:58:56 +01:00
Joseph C. Lehner
4c376a76f8 Fix mac handling in blind mode 2020-03-01 22:32:26 +01:00
Joseph C. Lehner
ccd4b0204b Blind mode improvements 2020-03-01 21:48:18 +01:00
Joseph C. Lehner
0ab6b37b9c Add blind mode (-B) 2020-03-01 20:08:37 +01:00
Joseph C. Lehner
f301e1727e Send ADVERTISE and CONFIG_ACK in one go 2020-02-29 23:33:47 +01:00
Joseph C. Lehner
021e449007 Show netmask as /%d 2019-09-07 10:55:12 +02:00
Joseph C. Lehner
63f7ab7610 Fix compile error 2019-09-05 16:08:01 +02:00
Joseph C. Lehner
d2f5dc2823 Don't print each keep-alive request on a new line 2019-09-05 15:43:54 +02:00
Joseph C. Lehner
1b27e82a10 Don't crash while fuzzing 2017-05-15 09:03:55 +02:00
Joseph C. Lehner
a4225b9ebf Don't use full path for file_remote 2017-03-18 10:29:39 +01:00
Joseph C. Lehner
6ed895d4c7 Log bogus NMRP responses 2017-02-23 18:29:55 +01:00
Joseph C. Lehner
44782bee4c Fix issues in new nmrp code 2017-02-21 17:55:39 +01:00
Joseph C. Lehner
f944f320b9 Fix packet length validation 2017-02-19 11:34:01 +01:00
Joseph C. Lehner
a59358a6c1 Fix new nmrp code 2017-02-19 11:00:45 +01:00
Joseph C. Lehner
0227c935ca Cleanup nmrp code 2017-02-18 18:14:04 +01:00
Joseph C. Lehner
11371109c8 Ensure that NMRP packets are at least 64 bytes 2017-02-16 13:08:55 +02:00
Joseph C. Lehner
77359d410d Fuzzing-related changes, mostly 2016-11-22 19:14:41 +01:00
Joseph C. Lehner
98fdb9e63c Use safe SIGINT handler 2016-11-20 12:22:15 +01:00
Joseph C. Lehner
eda1a2a698 Check subnet mask's sanity 2016-11-19 13:02:29 +01:00
Joseph C. Lehner
fba7aab1bd Unify ethsock IP/ARP API 2016-11-19 11:14:47 +01:00
Joseph C. Lehner
fd02c7dfa9 Add PORT env var 2016-11-19 11:14:47 +01:00
Joseph C. Lehner
a88d28b32a Improve message 2016-11-18 18:02:17 +01:00
Joseph C. Lehner
f08d636e91 Remove unused msg_dump arg 2016-11-18 17:55:26 +01:00
Joseph C. Lehner
564aff28aa Use time_monotonic for timeouts 2016-11-18 17:39:04 +01:00
Joseph C. Lehner
8d9ab31b79 Add fuzzing stuff 2016-11-18 17:18:38 +01:00
Joseph C. Lehner
03ffca3544 Fix hangs in nmrp code 2016-11-18 17:18:38 +01:00
Joseph C. Lehner
d42e0c83de Update default IPs 2016-11-13 11:48:43 +01:00
Joseph C. Lehner
7a980ffa01 Use .252 instead of .254 in autoip mode 2016-11-13 11:26:51 +01:00
Joseph C. Lehner
91318c2c5f Set env vars when using -c 2016-11-13 11:17:55 +01:00
Joseph C. Lehner
3b292714ff Set IP before starting NMRP loop 2016-11-13 08:28:22 +01:00