Package org.jnetpcap

Examples of org.jnetpcap.JCaptureHeader


   * Test method for {@link org.jnetpcap.packet.PcapPacket#getCaptureHeader()}.
   */
  public final void testGetCaptureHeader() {
    packet = TestUtils.getPcapPacket("tests/test-l2tp.pcap", 0);

    JCaptureHeader header = packet.getCaptureHeader();

    assertEquals(1075238237, header.seconds());
    assertEquals(192611000, header.nanos());
    assertEquals(114, header.caplen());
    assertEquals(114, header.wirelen());
    assertEquals(1075238237192L, header.timestampInMillis());
  }
View Full Code Here

TOP

Related Classes of org.jnetpcap.JCaptureHeader

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.