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
Joseph C. Lehner
482b03db23
Windows fixes
2016-11-12 19:04:09 +01:00
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