public class UdpActivity extends AbstractReplaceableActivity
PROPERTY_ADD_FRAME_NUMBERS, PROPERTY_NEW_END_INSTANT, PROPERTY_NEW_START_INSTANT
source
Constructor and Description |
---|
UdpActivity(PcapActivity source,
org.krakenapps.pcap.decoder.udp.UdpPacket packet)
Constructs a new Udp activity, replaces the source pcap activity on which this event occurred and excludes it
from the final output due to verbosity.
|
Modifier and Type | Method and Description |
---|---|
int |
getChecksum() |
String |
getDestinationAddressAsString()
An address that can be interpreted as the destination address for this activity.
|
int |
getDestinationPort() |
InetSocketAddress |
getDestinationSocketAddress() |
int |
getLength() |
PcapActivity |
getPcapActivity() |
String |
getSourceAddressAsString()
An address that can be interpreted as the source address for this activity.
|
int |
getSourcePort() |
InetSocketAddress |
getSourceSocketAddress() |
org.jnetpcap.protocol.tcpip.Udp |
getUdp() |
String |
toString() |
isReplaced, replaceActivity, setReplaced
addOptionalField, addPropertyChangeListener, addPropertyChangeListener, extendActivity, getActivityType, getCompoundFrameNumbers, getDescription, getEndInstant, getEndTimestamp, getOptionalFields, getStartInstant, getStartTimestamp, isExcludedFromOutput, removePropertyChangeListener, removePropertyChangeListener, removeReplacedActivity, setDescription, setDestinationAddress, setEndInstant, setExcludedFromOutput, setSourceAddress, setStartInstant, writeCsvRecord
getSource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, getActivityType, getCompoundFrameNumbers, getDescription, getEndInstant, getEndTimestamp, getOptionalFields, getStartInstant, getStartTimestamp, isExcludedFromOutput, removePropertyChangeListener, removePropertyChangeListener, setExcludedFromOutput
public UdpActivity(PcapActivity source, org.krakenapps.pcap.decoder.udp.UdpPacket packet)
source
- the pcap activity on which this activity occurredpacket
- the decoded UDP data (Kraken)public org.jnetpcap.protocol.tcpip.Udp getUdp()
public int getSourcePort()
public int getDestinationPort()
public InetSocketAddress getSourceSocketAddress()
public InetSocketAddress getDestinationSocketAddress()
public int getLength()
public int getChecksum()
public PcapActivity getPcapActivity()
public String getSourceAddressAsString()
Activity
getSourceAddressAsString
in interface Activity
getSourceAddressAsString
in class AbstractActivity
public String getDestinationAddressAsString()
Activity
getDestinationAddressAsString
in interface Activity
getDestinationAddressAsString
in class AbstractActivity
public String toString()
toString
in class AbstractActivity
Copyright © 2013–2015 Institute of networks and security. All rights reserved.