Package org.pcap4j.packet.namednumber
Enum IpV6OptionType.IpV6OptionTypeAction
- java.lang.Object
-
- java.lang.Enum<IpV6OptionType.IpV6OptionTypeAction>
-
- org.pcap4j.packet.namednumber.IpV6OptionType.IpV6OptionTypeAction
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<IpV6OptionType.IpV6OptionTypeAction>
,java.lang.constant.Constable
- Enclosing class:
- IpV6OptionType
public static enum IpV6OptionType.IpV6OptionTypeAction extends java.lang.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
- Author:
- Kaito
- See Also:
- RFC 2460 section 4.2
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DISCARD
Discard the packet: 1DISCARD_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: 2DISCARD_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: 3SKIP
Skip over this option and continue processing the header: 0
-
Method Summary
Modifier and Type Method Description int
getValue()
static IpV6OptionType.IpV6OptionTypeAction
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static IpV6OptionType.IpV6OptionTypeAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SKIP
public static final IpV6OptionType.IpV6OptionTypeAction SKIP
Skip over this option and continue processing the header: 0
-
DISCARD
public static final IpV6OptionType.IpV6OptionTypeAction DISCARD
Discard the packet: 1
-
DISCARD_AND_SEND_ICMP
public static final IpV6OptionType.IpV6OptionTypeAction 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
public static final IpV6OptionType.IpV6OptionTypeAction 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
-
-
Method Detail
-
values
public static IpV6OptionType.IpV6OptionTypeAction[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IpV6OptionType.IpV6OptionTypeAction valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getValue
public int getValue()
- Returns:
- value
-
-