public class EthernetActivity extends AbstractReplaceableActivity
Ethernet object, which should provide a vast amount
of metadata including the content buffer itself. If this activity is created before it has been processed by
subsequent protocol parsers, the content buffer should not be modified in any way, i.e. it should be treated as
read-only medium.
ENHANCEMENT: encapsulate all metadata fields and prohibit access to the content buffer itselfPROPERTY_ADD_FRAME_NUMBERS, PROPERTY_NEW_END_INSTANT, PROPERTY_NEW_START_INSTANTsource| Constructor and Description |
|---|
EthernetActivity(PcapActivity source,
org.krakenapps.pcap.decoder.ethernet.EthernetFrame frame)
Constructs a new ethernet activity, replaces the source pcap activity on which the event occurred.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDestinationAddressAsString()
An address that can be interpreted as the destination address for this activity.
|
org.krakenapps.pcap.decoder.ethernet.MacAddress |
getDestinationMacAddress() |
org.jnetpcap.protocol.lan.Ethernet |
getEthernet() |
int |
getEthernetType() |
org.jnetpcap.protocol.lan.Ethernet.EthernetType |
getEthernetTypeEnum() |
PcapActivity |
getPcapActivity() |
String |
getSourceAddressAsString()
An address that can be interpreted as the source address for this activity.
|
org.krakenapps.pcap.decoder.ethernet.MacAddress |
getSourceMacAddress() |
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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddPropertyChangeListener, addPropertyChangeListener, getActivityType, getCompoundFrameNumbers, getDescription, getEndInstant, getEndTimestamp, getOptionalFields, getStartInstant, getStartTimestamp, isExcludedFromOutput, removePropertyChangeListener, removePropertyChangeListener, setExcludedFromOutputpublic EthernetActivity(PcapActivity source, org.krakenapps.pcap.decoder.ethernet.EthernetFrame frame)
source - the Pcap activity on which the event occurred. This activity will be excluded from the
output, unless AbstractActivity.setExcludedFromOutput(boolean) is called with 'false'.frame - the decoded Ethernet frame (by Kraken)public org.jnetpcap.protocol.lan.Ethernet getEthernet()
public org.krakenapps.pcap.decoder.ethernet.MacAddress getSourceMacAddress()
public org.krakenapps.pcap.decoder.ethernet.MacAddress getDestinationMacAddress()
public int getEthernetType()
getEthernetTypeEnum()public org.jnetpcap.protocol.lan.Ethernet.EthernetType getEthernetTypeEnum()
getEthernetType()public PcapActivity getPcapActivity()
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.