mirror of
https://github.com/angryip/ipscan.git
synced 2025-10-26 11:18:17 +00:00
send echo packets of 56 bytes (all zeroes) - this seems to work better, especially with unusual devices like iBoot, thanks go to Michael Higgs for debugging
This commit is contained in:
parent
06d440489e
commit
e28ed30da0
@ -42,9 +42,10 @@ public class WindowsPinger implements Pinger {
|
||||
IpAddrByVal ipaddr = new IpAddrByVal();
|
||||
ipaddr.bytes = subject.getAddress().getAddress();
|
||||
|
||||
int sendDataSize = 16;
|
||||
int replyDataSize = sendDataSize + (new IcmpEchoReply().size());
|
||||
int sendDataSize = 56;
|
||||
int replyDataSize = sendDataSize + (new IcmpEchoReply().size()) + 10;
|
||||
Pointer sendData = new Memory(sendDataSize);
|
||||
sendData.clear(sendDataSize);
|
||||
Pointer replyData = new Memory(replyDataSize);
|
||||
|
||||
PingResult result = new PingResult(subject.getAddress());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user