Enum 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Enum

        java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      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
      SKIP
      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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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 name
        java.lang.NullPointerException - if the argument is null
      • getValue

        public int getValue()
        Returns:
        value