Package nl.sidnlabs.pcap.decoder
Class TCPDecoder
- java.lang.Object
-
- nl.sidnlabs.pcap.decoder.TCPDecoder
-
-
Field Summary
-
Fields inherited from interface nl.sidnlabs.pcap.decoder.Decoder
PROTOCOL_HEADER_DST_PORT_OFFSET, PROTOCOL_HEADER_SRC_PORT_OFFSET
-
-
Constructor Summary
Constructors Constructor Description TCPDecoder(DNSDecoder dnsDecoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearCache(int cacheTTL)ByteBufferdecode(Packet packet, byte[] packetData)voidprintStats()longreadUnsignedInt(byte[] buf)Packetreassemble(Packet packet, byte[] packetData)decode the packetdatavoidreset()
-
-
-
Constructor Detail
-
TCPDecoder
public TCPDecoder(DNSDecoder dnsDecoder)
-
-
Method Detail
-
reassemble
public Packet reassemble(Packet packet, byte[] packetData)
decode the packetdata- Specified by:
reassemblein interfaceDecoder- Parameters:
packet- network packetpacketData- data to assemble- Returns:
- reassembled packet of NULL packet
-
decode
public ByteBuffer decode(Packet packet, byte[] packetData)
-
readUnsignedInt
public long readUnsignedInt(byte[] buf)
-
clearCache
public void clearCache(int cacheTTL)
-
printStats
public void printStats()
- Specified by:
printStatsin interfaceDecoder
-
-