io.pkts.packet.PCapPacket Maven / Gradle / Ivy
/**
*
*/
package io.pkts.packet;
/**
* @author [email protected]
*/
public interface PCapPacket extends Packet {
/**
* Get the total length of the data. Not all of that data may have been
* captured in this one frame, which is evident if the actual captured
* length is different from the total length
*
* @return
*/
long getTotalLength();
/**
* Get the actual length of what is contained in this frame. Note, if the
* captured length is different from the total length then we have a
* fragmented packet
*
* @return the length in bytes
*/
long getCapturedLength();
@Override
PCapPacket clone();
}