public class KrakenIpv4Handler extends KrakenBaseProtocol
IpDecoder implementation.
Since the utilized IP next protocol numbers are not known a priori this class registers all numbers in the
range [0x01;0xFF[ during initialization.
Forward bindings are provided for:
| Modifier and Type | Field and Description |
|---|---|
static ProtocolId |
krakenIpv4ProtocolId |
static String |
NEW_IPV_4_ACTIVITY_PROPERTY_NAME |
BINDING_METHOD_NAME, log, propertyChangeSupport, protocolSetting| Constructor and Description |
|---|
KrakenIpv4Handler() |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(KrakenEthernetProtocolHandler ethernetProtocol)
An experimental backward binding, i.e.
|
void |
bind(KrakenIcmpv4Handler icmpv4Handler)
Bind the internal
IpDecoder to an ICMPv4 decoder, i.e. |
void |
bind(KrakenTcpHandler tcpProtocol)
Forward binding to the tcpProtocol internal TCP decoder, i.e.
|
void |
bind(KrakenUdpHandler udpProtocol)
Forward binding to the udpProtocol internal UDP decoder, i.e.
|
org.krakenapps.pcap.decoder.ip.IpDecoder |
getKrakenIpv4Decoder() |
ProtocolId |
getProtocolId()
An arbitrary identifier for the protocol(s) this decoder should be able to parse and decode.
|
void |
initialize(KrakenProtocolConfiguration setting)
Initializes this protocol decoder with the information provided by the user.
|
addPropertyChangeListener, addPropertyChangeListener, bind, findProtocolBindingMethod, getCurrentPcapActivity, getPcapHandler, getProtocolConfiguration, removePropertyChangeListener, removePropertyChangeListenerpublic static final String NEW_IPV_4_ACTIVITY_PROPERTY_NAME
public static final ProtocolId krakenIpv4ProtocolId
public ProtocolId getProtocolId()
BaseProtocolpublic void initialize(KrakenProtocolConfiguration setting)
KrakenBaseProtocolKrakenProtocolConfigurationBuilderImpl
before the bindings are processed.
This method should be called exactly once, multiple calls will result in an exception being thrown.initialize in class KrakenBaseProtocolsetting - the protocol configuration provided by the userpublic void bind(KrakenEthernetProtocolHandler ethernetProtocol)
ethernetProtocol - the Ethernet decoder to bind to this IPv4 decoderpublic void bind(KrakenTcpHandler tcpProtocol)
tcpProtocol - the handler for the decoded IPv4 packetspublic void bind(KrakenUdpHandler udpProtocol)
udpProtocol - the handler for the decoded IPv4 packetspublic void bind(KrakenIcmpv4Handler icmpv4Handler)
IpDecoder to an ICMPv4 decoder, i.e.
a decoder that shall receive all decoded IP packets.icmpv4Handler - the ICMPv4 decoder to bind toIllegalArgumentException - if the parameter is a null pointerpublic org.krakenapps.pcap.decoder.ip.IpDecoder getKrakenIpv4Decoder()
Copyright © 2013–2015 Institute of networks and security. All rights reserved.