Package org.pcap4j.packet.namednumber
Class SctpChunkType
- java.lang.Object
-
- org.pcap4j.packet.namednumber.NamedNumber<java.lang.Byte,SctpChunkType>
-
- org.pcap4j.packet.namednumber.SctpChunkType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SctpChunkType>
public final class SctpChunkType extends NamedNumber<java.lang.Byte,SctpChunkType>
SCTP Chunk Type- Since:
- pcap4j 1.6.6
- Author:
- Kaito Yamada
- See Also:
- RFC 4960, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SctpChunkType.ActionForUnkownType
Action that must be taken if the processing endpoint does not recognize the Chunk Type.
-
Field Summary
Fields Modifier and Type Field Description static SctpChunkType
ABORT
Abort: 6static SctpChunkType
COOKIE_ACK
Cookie Acknowledgement: 11static SctpChunkType
COOKIE_ECHO
State Cookie: 10static SctpChunkType
CWR
Congestion Window Reduced: 13static SctpChunkType
DATA
Payload Data: 0static SctpChunkType
ECNE
Explicit Congestion Notification Echo: 12static SctpChunkType
ERROR
Operation Error: 9static SctpChunkType
HEARTBEAT
Heartbeat Request: 4static SctpChunkType
HEARTBEAT_ACK
Heartbeat Acknowledgement: 5static SctpChunkType
INIT
Initiation: 1static SctpChunkType
INIT_ACK
Initiation Acknowledgement: 2static SctpChunkType
SACK
Selective Acknowledgement: 3static SctpChunkType
SHUTDOWN
Shutdown: 7static SctpChunkType
SHUTDOWN_ACK
Shutdown Acknowledgement: 8static SctpChunkType
SHUTDOWN_COMPLETE
Shutdown Complete: 14
-
Constructor Summary
Constructors Constructor Description SctpChunkType(java.lang.Byte value, java.lang.String name)
-
Method Summary
Modifier and Type Method Description int
compareTo(SctpChunkType o)
SctpChunkType.ActionForUnkownType
getActionForUnkownType()
static SctpChunkType
getInstance(java.lang.Byte value)
static SctpChunkType
register(SctpChunkType type)
int
valueAsInt()
java.lang.String
valueAsString()
-
-
-
Field Detail
-
DATA
public static final SctpChunkType DATA
Payload Data: 0
-
INIT
public static final SctpChunkType INIT
Initiation: 1
-
INIT_ACK
public static final SctpChunkType INIT_ACK
Initiation Acknowledgement: 2
-
SACK
public static final SctpChunkType SACK
Selective Acknowledgement: 3
-
HEARTBEAT
public static final SctpChunkType HEARTBEAT
Heartbeat Request: 4
-
HEARTBEAT_ACK
public static final SctpChunkType HEARTBEAT_ACK
Heartbeat Acknowledgement: 5
-
ABORT
public static final SctpChunkType ABORT
Abort: 6
-
SHUTDOWN
public static final SctpChunkType SHUTDOWN
Shutdown: 7
-
SHUTDOWN_ACK
public static final SctpChunkType SHUTDOWN_ACK
Shutdown Acknowledgement: 8
-
ERROR
public static final SctpChunkType ERROR
Operation Error: 9
-
COOKIE_ECHO
public static final SctpChunkType COOKIE_ECHO
State Cookie: 10
-
COOKIE_ACK
public static final SctpChunkType COOKIE_ACK
Cookie Acknowledgement: 11
-
ECNE
public static final SctpChunkType ECNE
Explicit Congestion Notification Echo: 12
-
CWR
public static final SctpChunkType CWR
Congestion Window Reduced: 13
-
SHUTDOWN_COMPLETE
public static final SctpChunkType SHUTDOWN_COMPLETE
Shutdown Complete: 14
-
-
Method Detail
-
getActionForUnkownType
public SctpChunkType.ActionForUnkownType getActionForUnkownType()
- Returns:
- an ActionForUnkownType object.
-
getInstance
public static SctpChunkType getInstance(java.lang.Byte value)
- Parameters:
value
- value- Returns:
- a SctpChunkType object.
-
register
public static SctpChunkType register(SctpChunkType type)
- Parameters:
type
- type- Returns:
- a SctpChunkType object.
-
valueAsInt
public int valueAsInt()
- Returns:
- the value of this object as an int.
-
valueAsString
public java.lang.String valueAsString()
- Overrides:
valueAsString
in classNamedNumber<java.lang.Byte,SctpChunkType>
- Returns:
- a string representation of this value.
-
compareTo
public int compareTo(SctpChunkType o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<SctpChunkType>
- Specified by:
compareTo
in classNamedNumber<java.lang.Byte,SctpChunkType>
-
-