org.jnetpcap.protocol.network
Enum Ip4.IpOption.OptionCode
java.lang.Object
java.lang.Enum<Ip4.IpOption.OptionCode>
org.jnetpcap.protocol.network.Ip4.IpOption.OptionCode
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Ip4.IpOption.OptionCode>
- Enclosing class:
- Ip4.IpOption
public static enum Ip4.IpOption.OptionCode
- extends java.lang.Enum<Ip4.IpOption.OptionCode>
A table of IpOption types and their names
- Author:
- Mark Bednarczyk, Sly Technologies, Inc.
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
END_OF_OPTION_LIST
public static final Ip4.IpOption.OptionCode END_OF_OPTION_LIST
LOOSE_SOURCE_ROUTE
public static final Ip4.IpOption.OptionCode LOOSE_SOURCE_ROUTE
NO_OP
public static final Ip4.IpOption.OptionCode NO_OP
RECORD_ROUTE
public static final Ip4.IpOption.OptionCode RECORD_ROUTE
SECURITY
public static final Ip4.IpOption.OptionCode SECURITY
STREAM_ID
public static final Ip4.IpOption.OptionCode STREAM_ID
STRICT_SOURCE_ROUTE
public static final Ip4.IpOption.OptionCode STRICT_SOURCE_ROUTE
TIMESTAMP
public static final Ip4.IpOption.OptionCode TIMESTAMP
UNASSIGNED1
public static final Ip4.IpOption.OptionCode UNASSIGNED1
UNASSIGNED2
public static final Ip4.IpOption.OptionCode UNASSIGNED2
id
public final int id
values
public static final Ip4.IpOption.OptionCode[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(Ip4.IpOption.OptionCode c : Ip4.IpOption.OptionCode.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static Ip4.IpOption.OptionCode 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
valueOf
public static Ip4.IpOption.OptionCode valueOf(int id)