Enum IpV6OptionType.IpV6OptionTypeAction

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

      Fields 
      Modifier and Type Field Description
      private byte value  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private IpV6OptionTypeAction​(byte value)  
    • 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
    • Field Detail

      • value

        private final byte value
    • Constructor Detail

      • IpV6OptionTypeAction

        private IpV6OptionTypeAction​(byte value)
    • Method Detail

      • values

        public static IpV6OptionType.IpV6OptionTypeAction[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (IpV6OptionType.IpV6OptionTypeAction c : IpV6OptionType.IpV6OptionTypeAction.values())
            System.out.println(c);
        
        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