Package jpcap.packet
Class Packet
java.lang.Object
jpcap.packet.Packet
- All Implemented Interfaces:
Serializable
This is a root class of the all the packets captured by
Jpcap
.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
Captured lengthbyte[]
Packet data (excluding the header)Datalink layer headerstatic final Packet
Returned by JpcapCaptor.getPacket() when EOF was reached while reading from an offline file.byte[]
Header dataint
Length of this packetlong
Captured timestamp (sec)long
Captured timestamp (micro sec) -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
sec
public long secCaptured timestamp (sec) -
usec
public long usecCaptured timestamp (micro sec) -
caplen
public int caplenCaptured length -
len
public int lenLength of this packet -
datalink
Datalink layer header -
header
public byte[] headerHeader data -
data
public byte[] dataPacket data (excluding the header) -
EOF
Returned by JpcapCaptor.getPacket() when EOF was reached while reading from an offline file.
-
-
Constructor Details
-
Packet
public Packet()
-
-
Method Details