Package org.onosproject.cli.net
Enum Icmp6Type
- java.lang.Object
-
- java.lang.Enum<Icmp6Type>
-
- org.onosproject.cli.net.Icmp6Type
-
- All Implemented Interfaces:
Serializable
,Comparable<Icmp6Type>
public enum Icmp6Type extends Enum<Icmp6Type>
Known values for ICMPv6 type field that can be supplied to the CLI.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEST_UNREACH
Destination Unreachable.ECHO_REPLY
Echo Reply.ECHO_REQUEST
Echo Request.MCAST_DONE
Multicast Listener Done.MCAST_QUERY
Multicast Listener Query.MCAST_REPORT
Multicast Listener Report.NEIGHBOR_ADVERTISEMENT
Neighbor Advertisement.NEIGHBOR_SOLICITATION
Neighbor Solicitation.PARAM_ERR
Parameter Problem.PKT_TOO_BIG
Packet Too Big.REDIRECT
Redirect Message.ROUTER_ADVERTISEMENT
Router Advertisement.ROUTER_SOLICITATION
Router Solicitation.TIME_EXCEED
Time Exceeded.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static byte
parseFromString(String input)
Parse a string input that could contain an Icmp6Type value.byte
value()
Gets the value to use for this Icmp6Type.static Icmp6Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static Icmp6Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEST_UNREACH
public static final Icmp6Type DEST_UNREACH
Destination Unreachable.
-
PKT_TOO_BIG
public static final Icmp6Type PKT_TOO_BIG
Packet Too Big.
-
TIME_EXCEED
public static final Icmp6Type TIME_EXCEED
Time Exceeded.
-
PARAM_ERR
public static final Icmp6Type PARAM_ERR
Parameter Problem.
-
ECHO_REQUEST
public static final Icmp6Type ECHO_REQUEST
Echo Request.
-
ECHO_REPLY
public static final Icmp6Type ECHO_REPLY
Echo Reply.
-
MCAST_QUERY
public static final Icmp6Type MCAST_QUERY
Multicast Listener Query.
-
MCAST_REPORT
public static final Icmp6Type MCAST_REPORT
Multicast Listener Report.
-
MCAST_DONE
public static final Icmp6Type MCAST_DONE
Multicast Listener Done.
-
ROUTER_SOLICITATION
public static final Icmp6Type ROUTER_SOLICITATION
Router Solicitation.
-
ROUTER_ADVERTISEMENT
public static final Icmp6Type ROUTER_ADVERTISEMENT
Router Advertisement.
-
NEIGHBOR_SOLICITATION
public static final Icmp6Type NEIGHBOR_SOLICITATION
Neighbor Solicitation.
-
NEIGHBOR_ADVERTISEMENT
public static final Icmp6Type NEIGHBOR_ADVERTISEMENT
Neighbor Advertisement.
-
REDIRECT
public static final Icmp6Type REDIRECT
Redirect Message.
-
-
Method Detail
-
values
public static Icmp6Type[] 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 (Icmp6Type c : Icmp6Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Icmp6Type valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
value
public byte value()
Gets the value to use for this Icmp6Type.- Returns:
- short value to use for this Icmp6Type
-
parseFromString
public static byte parseFromString(String input)
Parse a string input that could contain an Icmp6Type value. The value may appear in the string either as a known type name (one of the values of this enum), or a numeric type value.- Parameters:
input
- the input string to parse- Returns:
- the numeric value of the parsed ICMPv6 type
- Throws:
IllegalArgumentException
- if the input string does not contain a value that can be parsed into an ICMPv6 type
-
-