public class TcpActivity extends AbstractReplaceableActivity
TcpPacket
the other one for the JNetPcap equivalent Tcp.
However, independent of the used constructor the JNetPcap representation will always be made available if possible.
Instances of this class will not be included in the final output, AbstractActivity.setExcludedFromOutput(boolean) should be
called appropriately to override this behaviour.PROPERTY_ADD_FRAME_NUMBERS, PROPERTY_NEW_END_INSTANT, PROPERTY_NEW_START_INSTANTsource| Constructor and Description |
|---|
TcpActivity(PcapActivity source,
org.jnetpcap.protocol.tcpip.Tcp tcp,
IpActivity ip) |
TcpActivity(PcapActivity source,
org.krakenapps.pcap.decoder.tcp.TcpPacket tcpPacket,
org.krakenapps.pcap.decoder.tcp.TcpSession tcpSession)
Constructs a new Tcp activity using the decoded Kraken data.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
ENHANCEMENT: Crude check based on the source activity should be replaced by a more detailed comparison
since the decoders may not be deterministic.
|
long |
getAcknowledgeNumber() |
int |
getChecksum() |
org.krakenapps.pcap.decoder.tcp.TcpState |
getClientState() |
int |
getControlBits() |
int |
getDataOffset() |
InetAddress |
getDestinationAddress() |
String |
getDestinationAddressAsString()
An address that can be interpreted as the destination address for this activity.
|
int |
getDestinationPort() |
InetSocketAddress |
getDestinationSocketAddress() |
org.krakenapps.pcap.decoder.tcp.TcpDirection |
getDirection() |
byte[] |
getOptions() |
byte[] |
getPadding() |
PcapActivity |
getPcapActivity() |
int |
getRelativeAcknowledgeNumber() |
int |
getRelativeSequenceNumber() |
long |
getSequenceNumber() |
org.krakenapps.pcap.decoder.tcp.TcpState |
getServerState() |
InetAddress |
getSourceAddress() |
String |
getSourceAddressAsString()
An address that can be interpreted as the source address for this activity.
|
int |
getSourcePort() |
InetSocketAddress |
getSourceSocketAddress() |
org.jnetpcap.protocol.tcpip.Tcp |
getTcp() |
int |
getTcpLength() |
int |
getUrgentPointer() |
int |
getWindowSize() |
boolean |
isAck() |
boolean |
isFin() |
boolean |
isPsh() |
boolean |
isRst() |
boolean |
isSyn() |
boolean |
isUrg() |
String |
payloadHexFormattedDump() |
String |
payloadHexString() |
String |
payloadString() |
String |
toString() |
isReplaced, replaceActivity, setReplacedaddOptionalField, addPropertyChangeListener, addPropertyChangeListener, extendActivity, getActivityType, getCompoundFrameNumbers, getDescription, getEndInstant, getEndTimestamp, getOptionalFields, getStartInstant, getStartTimestamp, isExcludedFromOutput, removePropertyChangeListener, removePropertyChangeListener, removeReplacedActivity, setDescription, setDestinationAddress, setEndInstant, setExcludedFromOutput, setSourceAddress, setStartInstant, writeCsvRecordgetSourceclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddPropertyChangeListener, addPropertyChangeListener, getActivityType, getCompoundFrameNumbers, getDescription, getEndInstant, getEndTimestamp, getOptionalFields, getStartInstant, getStartTimestamp, isExcludedFromOutput, removePropertyChangeListener, removePropertyChangeListener, setExcludedFromOutputpublic TcpActivity(PcapActivity source, org.krakenapps.pcap.decoder.tcp.TcpPacket tcpPacket, org.krakenapps.pcap.decoder.tcp.TcpSession tcpSession)
source - the final pacp activity that led to a successful decode by the Kraken TCP decoder.tcpPacket - the decoded TCP packet datatcpSession - the maintained TCP session information (client & server state)public TcpActivity(PcapActivity source, org.jnetpcap.protocol.tcpip.Tcp tcp, IpActivity ip)
public int getSourcePort()
getSourceSocketAddress()public int getDestinationPort()
getDestinationSocketAddress()public InetAddress getSourceAddress()
getSourceSocketAddress()public InetSocketAddress getSourceSocketAddress()
public InetAddress getDestinationAddress()
getDestinationSocketAddress()public InetSocketAddress getDestinationSocketAddress()
public long getSequenceNumber()
public long getAcknowledgeNumber()
public int getDataOffset()
public int getControlBits()
public int getWindowSize()
public int getChecksum()
public int getUrgentPointer()
public int getTcpLength()
public byte[] getOptions()
public byte[] getPadding()
public boolean isSyn()
public boolean isAck()
public boolean isPsh()
public boolean isFin()
public boolean isRst()
public boolean isUrg()
public org.krakenapps.pcap.decoder.tcp.TcpDirection getDirection()
public org.krakenapps.pcap.decoder.tcp.TcpState getClientState()
public org.krakenapps.pcap.decoder.tcp.TcpState getServerState()
public PcapActivity getPcapActivity()
public int getRelativeSequenceNumber()
public int getRelativeAcknowledgeNumber()
public org.jnetpcap.protocol.tcpip.Tcp getTcp()
public String payloadString()
public String payloadHexFormattedDump()
FormatUtils.hexdump(byte[])public String payloadHexString()
FormatUtils.hexdump(byte[])public boolean equals(Object obj)
public String getSourceAddressAsString()
ActivitygetSourceAddressAsString in interface ActivitygetSourceAddressAsString in class AbstractActivitypublic String getDestinationAddressAsString()
ActivitygetDestinationAddressAsString in interface ActivitygetDestinationAddressAsString in class AbstractActivitypublic String toString()
toString in class AbstractActivityCopyright © 2013–2015 Institute of networks and security. All rights reserved.