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:
  • Enum Constant Details

    • 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
  • Field Details

    • value

      private final byte value
  • Constructor Details

    • IpV6OptionTypeAction

      private IpV6OptionTypeAction(byte value)
  • Method Details

    • values

      public static IpV6OptionType.IpV6OptionTypeAction[] 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

      public static IpV6OptionType.IpV6OptionTypeAction valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Returns:
      value