Package org.jnetpcap.protocol.network

Examples of org.jnetpcap.protocol.network.Arp


  public void testArp() {
    JPacket packet = super.getPcapPacket(VLAN, 189 - 1);
   
    assertTrue(packet.hasHeader(JProtocol.ARP_ID));
   
    Arp arp = new Arp();
    assertTrue(packet.hasHeader(arp));
    assertEquals(Arp.OpCode.REQUEST, arp.operationEnum());
    System.out.println(packet);
  }
View Full Code Here

TOP

Related Classes of org.jnetpcap.protocol.network.Arp

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.