Damyan Ivanov
9f1a6027b4
support compiling outside git checkout
...
When building nmrpflash for Debian, there is no 'git' command available,
and there is no '.git' directory either. This makes the build emit
warnings from the $(shell) calls in VERSION variable in the Makefile
and breaks the '-V' option.
The change in this patch accounts for missing 'git' command and resorts
to using a STANDALONE_VERSION environment variable which in turn is
provided by the package build mechanics.
This change has no effect when the git command is available and the
'.git' directory is present.
2020-04-19 06:07:13 +00: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
Simon Leiß
bdcb297609
nmrpflash works on EX6150v2.
2020-04-16 21:57:27 +02:00
Antoine Delvaux
268374bdcd
Succesfully tested on EX6120 to flash an OpenWRT image
2020-04-15 19:24:49 +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
00505bc516
Update readme
2020-03-02 14:25:09 +01:00
Joseph C. Lehner
cf95657f5d
Add TFTP upload spinner
2020-03-02 14:21:02 +01:00
Joseph C. Lehner
79daac1e22
Always show opt length in Wireshark dissector
2020-03-02 11:47:05 +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
1f3a435eb7
Update help text and readme
2020-03-02 09:41:56 +01:00
Joseph C. Lehner
da9700c71d
Use shorter TFTP timeout in blind mode
2020-03-02 09:30:27 +01:00
Joseph C. Lehner
30a2f28f1a
Change select_fd args to microseconds
2020-03-02 08:45:21 +01:00
Joseph C. Lehner
9a9abfc07c
Don't use -t timeout for TFTP transfers
2020-03-02 08:34:44 +01:00
Joseph C. Lehner
4c376a76f8
Fix mac handling in blind mode
2020-03-01 22:32:26 +01:00
Joseph C. Lehner
ddebe8979e
Extend blind mode to TFTP
2020-03-01 21:57:24 +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
46c56b75e2
OSX -> MacOS
2020-01-09 21:28:28 +01:00
Joseph C. Lehner
47817a6dd7
Merge branch 'master' of github.com:jclehner/nmrpflash
2020-01-09 21:21:26 +01:00
Joseph C. Lehner
62e0e312eb
Update README.md
2020-01-09 21:19:11 +01:00
Joseph C. Lehner
8753d9ec59
Update README.md
2020-01-09 21:17:11 +01:00
Joseph C. Lehner
53e911292d
Update README.md
2020-01-09 21:16:29 +01:00
Joseph C. Lehner
a8035e5208
Cleanup
2019-09-09 13:31:45 +02:00
Joseph C. Lehner
021e449007
Show netmask as /%d
2019-09-07 10:55:12 +02:00
Joseph C. Lehner
d01a9db03d
Remove useless goto
2019-09-07 10:54:16 +02:00
Joseph C. Lehner
92cdcc5155
Update DevCpp project
2019-09-07 09:59:01 +02:00
Joseph C. Lehner
63f7ab7610
Fix compile error
2019-09-05 16:08:01 +02:00
Joseph C. Lehner
6856953086
Update readme
2019-09-05 16:05:54 +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
0373577005
Warn about TFTP block rollover
2019-09-05 15:38:34 +02:00
Joseph C. Lehner
f5d0a4ffe1
Revert "Prevent block counter rollover"
...
This reverts commit 49b156879a
.
2019-09-05 15:26:23 +02:00
Joseph C. Lehner
73a1c11f4f
Revert "Conditionally enable TFTP block rollover hack"
...
This reverts commit b3ba1c016b
.
2019-09-05 15:26:01 +02:00
Joseph C. Lehner
68fb396869
Revert "Hopefully fix TFTP rollover hack"
...
This reverts commit 1724f8b4c0
.
2019-09-05 15:25:57 +02:00
Joseph C. Lehner
ed27079ff5
Update README.md
2019-08-04 22:24:38 +02:00
Joseph C. Lehner
1724f8b4c0
Hopefully fix TFTP rollover hack
2019-08-01 20:58:04 +02:00
Joseph C. Lehner
5853a5a3d9
Update README.md
2019-05-02 12:33:27 +02:00
Joseph C. Lehner
9ed97f702c
Update README.md
2019-05-02 12:33:03 +02:00
Joseph C. Lehner
5eca2cb90a
Update README.md
2019-05-02 12:32:14 +02:00
Joseph C. Lehner
b3ba1c016b
Conditionally enable TFTP block rollover hack
2019-05-02 12:25:08 +02:00
Joseph C. Lehner
49b156879a
Prevent block counter rollover
2019-04-29 10:51:38 +02:00
Joseph C. Lehner
826ff59150
Drop 32-bit support on macOS
2019-04-26 20:48:40 +02:00
Joseph C. Lehner
2d4a5948fc
Fix tftp block rollover
2019-04-26 20:43:45 +02:00
Joseph C. Lehner
48a27e289c
Update README.md
2019-02-03 05:34:38 -08:00
Joseph C. Lehner
d4a72d610b
Bump to 0.9.13
2018-09-11 16:39:13 +02:00
Joseph C. Lehner
83bd41b67a
Correctly set subnet mask on Linux
2018-09-11 16:31:31 +02:00
Joseph C. Lehner
c7106becb1
Fix unused warning
2018-09-11 16:31:00 +02:00
Joseph C. Lehner
f6a08220f1
Use SIOCxARP instead of libnl for Linux ARP stuff (WIP)
2018-09-10 20:30:37 +02:00
Joseph C. Lehner
aaaa05d658
Add LICENSE
2018-07-08 22:05:42 +02:00