Enum Class IpV6OptionType.IpV6OptionTypeAction
java.lang.Object
java.lang.Enum<IpV6OptionType.IpV6OptionTypeAction>
org.pcap4j.packet.namednumber.IpV6OptionType.IpV6OptionTypeAction
- All Implemented Interfaces:
Serializable, Comparable<IpV6OptionType.IpV6OptionTypeAction>, Constable
- Enclosing class:
IpV6OptionType
public static enum IpV6OptionType.IpV6OptionTypeAction
extends Enum<IpV6OptionType.IpV6OptionTypeAction>
The act field (The highest-order two bits of the Option Type). This specifies the action that
must be taken if the processing IPv6 node does not recognize the Option Type.
- Since:
- pcap4j 0.9.10
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDiscard the packet: 1Discard the packet and, regardless of whether or not the packet's Destination Address was a multicast address, send an ICMP Parameter Problem, Code 2, message to the packet's Source Address, pointing to the unrecognized Option Type: 2Discard the packet and, only if the packet's Destination Address was not a multicast address, send an ICMP Parameter Problem, Code 2, message to the packet's Source Address, pointing to the unrecognized Option Type: 3Skip over this option and continue processing the header: 0 -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetValue()Returns the enum constant of this class with the specified name.static IpV6OptionType.IpV6OptionTypeAction[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SKIP
Skip over this option and continue processing the header: 0 -
DISCARD
Discard the packet: 1 -
DISCARD_AND_SEND_ICMP
Discard the packet and, regardless of whether or not the packet's Destination Address was a multicast address, send an ICMP Parameter Problem, Code 2, message to the packet's Source Address, pointing to the unrecognized Option Type: 2 -
DISCARD_AND_SEND_ICMP_IF_NOT_MULTICAST
Discard the packet and, only if the packet's Destination Address was not a multicast address, send an ICMP Parameter Problem, Code 2, message to the packet's Source Address, pointing to the unrecognized Option Type: 3
-
-
Field Details
-
value
private final byte value
-
-
Constructor Details
-
IpV6OptionTypeAction
private IpV6OptionTypeAction(byte value)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()- Returns:
- value
-