Package pcap.spi

Interface PacketHeader


public interface PacketHeader
Generic per-packet information.

PacketHeader supply the appropriate version of Timestamp, regardless of whether your system supports 32-bit Timestamp, 64-bit Timestamp, or both.

Note: On-disk format of savefiles uses 32-bit Timestamp.

Since:
1.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Length of portion present (must be less then or equal to length()).
    int
    Length this packet (off wire).
    Timestamp per-packet.
  • Method Details

    • timestamp

      Timestamp timestamp()
      Timestamp per-packet.
      Returns:
      returns timestamp.
      Since:
      1.0.0
    • captureLength

      int captureLength()
      Length of portion present (must be less then or equal to length()).
      Returns:
      returns length of portion present.
      Since:
      1.0.0
    • length

      int length()
      Length this packet (off wire).
      Returns:
      returns length this packet (off wire).
      Since:
      1.0.0