public class TCPDecoder extends Object
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
EMPTY_PAYLOAD |
protected com.google.common.collect.Multimap<TCPFlow,SequencePayload> |
flows |
protected com.google.common.collect.Multimap<TCPFlow,Long> |
flowseq |
static int |
PROTOCOL_HEADER_TCP_ACK_OFFSET |
static int |
PROTOCOL_HEADER_TCP_SEQ_OFFSET |
static int |
PROTOCOL_HEADER_WINDOW_SIZE_OFFSET |
static int |
TCP_HEADER_DATA_OFFSET |
| Constructor and Description |
|---|
TCPDecoder() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decode(Packet packet,
byte[] packetData,
int ipStart,
int ipHeaderLen,
int totalLength) |
byte[] |
reassemble(Packet packet,
int ipHeaderLen,
int totalLength,
int ipStart,
byte[] packetData)
decode the packetdata
|
public static final int PROTOCOL_HEADER_TCP_SEQ_OFFSET
public static final int PROTOCOL_HEADER_TCP_ACK_OFFSET
public static final int TCP_HEADER_DATA_OFFSET
public static final int PROTOCOL_HEADER_WINDOW_SIZE_OFFSET
public static final byte[] EMPTY_PAYLOAD
protected com.google.common.collect.Multimap<TCPFlow,SequencePayload> flows
public byte[] decode(Packet packet, byte[] packetData, int ipStart, int ipHeaderLen, int totalLength)
public byte[] reassemble(Packet packet, int ipHeaderLen, int totalLength, int ipStart, byte[] packetData)
packet - ipHeaderLen - totalLength - ipStart - packetData - Copyright © 2019. All rights reserved.