Package org.pcap4j.packet.namednumber
Class IpV6OptionType
- java.lang.Object
-
- org.pcap4j.packet.namednumber.NamedNumber<java.lang.Byte,IpV6OptionType>
-
- org.pcap4j.packet.namednumber.IpV6OptionType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<IpV6OptionType>
public final class IpV6OptionType extends NamedNumber<java.lang.Byte,IpV6OptionType>
IpV6 Option Type- Since:
- pcap4j 0.9.10
- Author:
- Kaito Yamada
- See Also:
- IANA Registry, RFC 2460 section 4.2, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IpV6OptionType.IpV6OptionTypeAction
The act field (The highest-order two bits of the Option Type).
-
Field Summary
Fields Modifier and Type Field Description static IpV6OptionType
CALIPSO
CALIPSO: 0x07static IpV6OptionType
ENDPOINT_IDENTIFICATION
Endpoint Identification: 0x8Astatic IpV6OptionType
HOME_ADDRESS
Home Address: 0xC9static IpV6OptionType
ILNP_NONCE
ILNP Nonce: 0x8Bstatic IpV6OptionType
IP_DFF
IP_DFF: 0xEEstatic IpV6OptionType
JUMBO_PAYLOAD
Jumbo Payload: 0xC2static IpV6OptionType
LINE_IDENTIFICATION
Line-Identification: 0x8Cstatic IpV6OptionType
MPL
MPL: 0x6Dstatic IpV6OptionType
PAD1
Pad1: 0x00static IpV6OptionType
PADN
PadN: 0x01static IpV6OptionType
QUICK_START
Quick-Start: 0x26static IpV6OptionType
ROUTER_ALERT
Router Alert: 0x05static IpV6OptionType
RPL
RPL: 0x63static IpV6OptionType
SMF_DPD
SMF_DPD: 0x08static IpV6OptionType
TUNNEL_ENCAPSULATION_LIMIT
Tunnel Encapsulation Limit: 0x04
-
Constructor Summary
Constructors Constructor Description IpV6OptionType(java.lang.Byte value, java.lang.String name)
-
Method Summary
Modifier and Type Method Description int
compareTo(IpV6OptionType o)
IpV6OptionType.IpV6OptionTypeAction
getAction()
The act field (The highest-order two bits of the Option Type)static IpV6OptionType
getInstance(java.lang.Byte value)
boolean
optionDataMayChange()
The chg field (The third-highest-order bit of the Option Type)static IpV6OptionType
register(IpV6OptionType type)
java.lang.String
valueAsString()
-
-
-
Field Detail
-
PAD1
public static final IpV6OptionType PAD1
Pad1: 0x00
-
PADN
public static final IpV6OptionType PADN
PadN: 0x01
-
JUMBO_PAYLOAD
public static final IpV6OptionType JUMBO_PAYLOAD
Jumbo Payload: 0xC2
-
RPL
public static final IpV6OptionType RPL
RPL: 0x63
-
TUNNEL_ENCAPSULATION_LIMIT
public static final IpV6OptionType TUNNEL_ENCAPSULATION_LIMIT
Tunnel Encapsulation Limit: 0x04
-
ROUTER_ALERT
public static final IpV6OptionType ROUTER_ALERT
Router Alert: 0x05
-
QUICK_START
public static final IpV6OptionType QUICK_START
Quick-Start: 0x26
-
CALIPSO
public static final IpV6OptionType CALIPSO
CALIPSO: 0x07
-
SMF_DPD
public static final IpV6OptionType SMF_DPD
SMF_DPD: 0x08
-
HOME_ADDRESS
public static final IpV6OptionType HOME_ADDRESS
Home Address: 0xC9
-
ENDPOINT_IDENTIFICATION
public static final IpV6OptionType ENDPOINT_IDENTIFICATION
Endpoint Identification: 0x8A
-
ILNP_NONCE
public static final IpV6OptionType ILNP_NONCE
ILNP Nonce: 0x8B
-
LINE_IDENTIFICATION
public static final IpV6OptionType LINE_IDENTIFICATION
Line-Identification: 0x8C
-
MPL
public static final IpV6OptionType MPL
MPL: 0x6D
-
IP_DFF
public static final IpV6OptionType IP_DFF
IP_DFF: 0xEE
-
-
Method Detail
-
getInstance
public static IpV6OptionType getInstance(java.lang.Byte value)
- Parameters:
value
- value- Returns:
- a IpV6OptionType object.
-
register
public static IpV6OptionType register(IpV6OptionType type)
- Parameters:
type
- type- Returns:
- a IpV6OptionType object.
-
valueAsString
public java.lang.String valueAsString()
- Overrides:
valueAsString
in classNamedNumber<java.lang.Byte,IpV6OptionType>
- Returns:
- a string representation of this value.
-
compareTo
public int compareTo(IpV6OptionType o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<IpV6OptionType>
- Specified by:
compareTo
in classNamedNumber<java.lang.Byte,IpV6OptionType>
-
getAction
public IpV6OptionType.IpV6OptionTypeAction getAction()
The act field (The highest-order two bits of the Option Type)- Returns:
- action
-
optionDataMayChange
public boolean optionDataMayChange()
The chg field (The third-highest-order bit of the Option Type)- Returns:
- true if the option data may change en-route; false the option data does not change en-route.
-
-