Commit graph

394 commits

Author SHA1 Message Date
Joseph C. Lehner
ec3f738fb6 Add -S <offset> option 2020-09-10 15:11:04 +02:00
Joseph C. Lehner
5acfbed385 Update readme 2020-09-10 12:10:15 +02:00
Joseph C. Lehner
cfe4ab8078 Fix Linux cable detection code 2020-09-10 11:44:15 +02:00
Joseph C. Lehner
738535ecaa
Update README.md
#49
2020-08-25 19:17:27 +02:00
Joseph C. Lehner
68d89dcb27 Linux: add Ethernet cable status detection 2020-08-18 13:01:37 +02:00
Joseph C. Lehner
3bf364af06 Windows: use ANSI interface names instead of net%d aliases 2020-08-18 13:01:37 +02:00
Joseph C. Lehner
99f50229d8 Update DevCpp project file 2020-08-18 13:01:37 +02:00
Joseph C. Lehner
35fd6f41df Detect unplugged Ethernet cable on Windows 2020-08-18 13:01:37 +02:00
Joseph C. Lehner
015e4d48b1 Fix some warnings on Windows 2020-08-17 14:28:51 +02:00
Joseph C. Lehner
2f37b8b7b1 Use CreateUnicastIpAddressEntry instead of AddIPAddress on Windows 2020-08-17 14:23:09 +02:00
Joseph C. Lehner
63de99cfbc
Update README.md 2020-08-17 13:12:44 +02:00
Joseph C. Lehner
25cda736e6 Increase NMRP timeout to 1s 2020-08-17 12:29:58 +02:00
Joseph C. Lehner
0503ae2788 Fix default timeout values 2020-08-17 12:15:26 +02:00
Joseph C. Lehner
f5c4937cc9
Update README.md 2020-08-06 21:16:03 +02:00
Joseph C. Lehner
13a135139d
Update README.md 2020-08-06 21:13:36 +02:00
Joseph C. Lehner
472adb1c51
Merge pull request #42 from BreakShadow0504/patch-1
Confirm work on my NETGEAR R6100
2020-08-03 21:43:09 +02:00
残影
608dfda3f9
Confirm work on my NETGEAR R6100
Went back from OpenWRT 19.07.3 to OEM firmware 1.2.0.4 (China) using nmrpflash.
After a few times of retries, router finally answered nmrpflash and recieved my firmware image.
"Timeout while waiting for ACK(0)/OACK" occured the first time and did not occur again.
2020-08-02 20:27:38 +08:00
Joseph C. Lehner
55452bb753 More fuzzing related changes 2020-07-07 10:10:47 +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
Joseph C. Lehner
feb5c63986
Merge pull request #39 from benejoseph/master
Updated documentation.
2020-07-06 11:29:08 +02:00
Joseph C. Lehner
913f261a0c
Update README.md 2020-07-06 11:28:30 +02:00
Joseph C. Lehner
a79d405340
Update README.md 2020-07-06 11:27:04 +02:00
Benjamin Joseph
8a26cdf4b1 Updated documentation.
From painful experiences and eventual success
success.
2020-07-04 10:33:25 -07:00
Joseph C. Lehner
442f74b2d6
Update README.md 2020-05-26 16:26:19 +02:00
Joseph C. Lehner
9bb6324cd2
Update README.md 2020-05-11 22:49:57 +02:00
Joseph C. Lehner
7bbb247167
Update README.md 2020-05-11 22:23:31 +02:00
Joseph C. Lehner
b6cb61054b
Update README.md 2020-05-11 16:50:10 +02:00
Joseph C. Lehner
ee88cee0c8
Update README.md 2020-05-11 16:25:22 +02:00
Joseph C. Lehner
7d901d078f
Merge pull request #37 from real-dam/cross-pkg-config
Improve cross-building by honoring PKG_CONFIG from environment
2020-05-11 16:20:26 +02:00
Joseph C. Lehner
7f75f8bebc
Merge pull request #35 from real-dam/standalone-version
support compiling outside of git checkout
2020-05-11 16:19:36 +02:00
Joseph C. Lehner
44a2d08210
Merge pull request #34 from real-dam/init-intf_addr
avoid possible use of uninitialized intf_addr in nmrp_do()
2020-05-11 16:18:13 +02:00
Joseph C. Lehner
d13fe79bf2
Merge pull request #33 from sleiss/patch-1
nmrpflash works on EX6150v2.
2020-05-11 16:15:20 +02:00
Joseph C. Lehner
24b621dee9
Merge branch 'master' into patch-1 2020-05-11 16:15:00 +02:00
Joseph C. Lehner
dcef47a334
Merge pull request #31 from tonin/patch-1
Succesfully tested on EX6120 to flash an OpenWRT image
2020-05-11 16:13:49 +02:00
Damyan Ivanov
1679444dce Improve cross-building by honoring PKG_CONFIG from environment
This is in response to Debian bug #960165 by Helmut Grohne.
<https://bugs.debian.org/960165>

When cross-building, another pkg-config is used that accounts for the target
architecture.

The patch makes it possible to supply that via the PKG_CONFIG environment
variable and defaults to 'pkg-config' so no such variable defaults to
native build.
2020-05-10 07:26:31 +00:00
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