Package net.azib.ipscan.core.net.WinIpHlpDll

Examples of net.azib.ipscan.core.net.WinIpHlpDll.IpAddrByVal


public class WinMACFetcher extends MACFetcher {
  @Override public void init() {
  }

  @Override public String resolveMAC(InetAddress address) {
    IpAddrByVal destIP = new IpAddrByVal();
    destIP.bytes = address.getAddress();

    Pointer pmac = new Memory(8);
    Pointer plen = new Memory(4);
    plen.setInt(0, 8);
View Full Code Here


  public PingResult ping(ScanningSubject subject, int count) throws IOException {
    Pointer handle = dll.IcmpCreateFile();
    if (handle == null) throw new IOException("Unable to create Windows native ICMP handle");

    IpAddrByVal ipaddr = new IpAddrByVal();
    ipaddr.bytes = subject.getAddress().getAddress();

    int sendDataSize = 56;
    int replyDataSize = sendDataSize + (new IcmpEchoReply().size()) + 10;
    Pointer sendData = new Memory(sendDataSize);
View Full Code Here

TOP

Related Classes of net.azib.ipscan.core.net.WinIpHlpDll.IpAddrByVal

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.