org.jnetpcap.protocol.network
Enum Ip4.IpOption.OptionCode

java.lang.Object
  extended by java.lang.Enum<Ip4.IpOption.OptionCode>
      extended by 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.

Enum Constant Summary
ADDRESS_EXTENSION
          The ADDRES s_ extension.
DYNAMIC_PACKET_STATE
          The DYNAMI c_ packe t_ state.
ENCODE
          The ENCODE.
END_OF_OPTION_LIST
          The EN d_ o f_ optio n_ list.
EXPERIMENTAL_ACCESS_CONTROL
          The EXPERIMENTA l_ acces s_ control.
EXPERIMENTAL_FLOW_CONTROL
          The EXPERIMENTA l_ flo w_ control.
EXPERIMENTAL_MEASUREMENT
          The EXPERIMENTA l_ measurement.
EXTENDED_IP
          The EXTENDE d_ ip.
IMI_TRAFFIC_DESCRIPTOR
          The IM i_ traffi c_ descriptor.
LOOSE_SOURCE_ROUTE
          The LOOS e_ sourc e_ route.
MTU_PROBE
          The MT u_ probe.
MTU_REPLY
          The MT u_ reply.
NO_OP
          The N o_ op.
QUICK_START
          The QUIC k_ start.
RECORD_ROUTE
          The RECOR d_ route.
ROUTER_ALERT
          The ROUTE r_ alert.
SECURITY
          The SECURITY.
SELECTIVE_DIRECTED_BROADCAST_MOST
          The SELECTIV e_ directe d_ broadcas t_ most.
STREAM_ID
          The STREA m_ id.
STRICT_SOURCE_ROUTE
          The STRIC t_ sourc e_ route.
TIMESTAMP
          The TIMESTAMP.
TRACEROUTE
          The TRACEROUTE.
UNASSIGNED1
          The UNASSIGNE d1.
UNASSIGNED2
          The UNASSIGNE d2.
UPSTREAM_MULTICAST_PACKET
          The UPSTREA m_ multicas t_ packet.
 
Field Summary
 int id
          The id.
 
Method Summary
static Ip4.IpOption.OptionCode valueOf(int id)
          Value of.
static Ip4.IpOption.OptionCode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Ip4.IpOption.OptionCode[] 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, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

END_OF_OPTION_LIST

public static final Ip4.IpOption.OptionCode END_OF_OPTION_LIST
The EN d_ o f_ optio n_ list.


LOOSE_SOURCE_ROUTE

public static final Ip4.IpOption.OptionCode LOOSE_SOURCE_ROUTE
The LOOS e_ sourc e_ route.


NO_OP

public static final Ip4.IpOption.OptionCode NO_OP
The N o_ op.


RECORD_ROUTE

public static final Ip4.IpOption.OptionCode RECORD_ROUTE
The RECOR d_ route.


SECURITY

public static final Ip4.IpOption.OptionCode SECURITY
The SECURITY.


STREAM_ID

public static final Ip4.IpOption.OptionCode STREAM_ID
The STREA m_ id.


STRICT_SOURCE_ROUTE

public static final Ip4.IpOption.OptionCode STRICT_SOURCE_ROUTE
The STRIC t_ sourc e_ route.


TIMESTAMP

public static final Ip4.IpOption.OptionCode TIMESTAMP
The TIMESTAMP.


UNASSIGNED1

public static final Ip4.IpOption.OptionCode UNASSIGNED1
The UNASSIGNE d1.


UNASSIGNED2

public static final Ip4.IpOption.OptionCode UNASSIGNED2
The UNASSIGNE d2.


EXPERIMENTAL_MEASUREMENT

public static final Ip4.IpOption.OptionCode EXPERIMENTAL_MEASUREMENT
The EXPERIMENTA l_ measurement.


MTU_PROBE

public static final Ip4.IpOption.OptionCode MTU_PROBE
The MT u_ probe.


MTU_REPLY

public static final Ip4.IpOption.OptionCode MTU_REPLY
The MT u_ reply.


EXPERIMENTAL_FLOW_CONTROL

public static final Ip4.IpOption.OptionCode EXPERIMENTAL_FLOW_CONTROL
The EXPERIMENTA l_ flo w_ control.


EXPERIMENTAL_ACCESS_CONTROL

public static final Ip4.IpOption.OptionCode EXPERIMENTAL_ACCESS_CONTROL
The EXPERIMENTA l_ acces s_ control.


ENCODE

public static final Ip4.IpOption.OptionCode ENCODE
The ENCODE.


IMI_TRAFFIC_DESCRIPTOR

public static final Ip4.IpOption.OptionCode IMI_TRAFFIC_DESCRIPTOR
The IM i_ traffi c_ descriptor.


EXTENDED_IP

public static final Ip4.IpOption.OptionCode EXTENDED_IP
The EXTENDE d_ ip.


TRACEROUTE

public static final Ip4.IpOption.OptionCode TRACEROUTE
The TRACEROUTE.


ADDRESS_EXTENSION

public static final Ip4.IpOption.OptionCode ADDRESS_EXTENSION
The ADDRES s_ extension.


ROUTER_ALERT

public static final Ip4.IpOption.OptionCode ROUTER_ALERT
The ROUTE r_ alert.


SELECTIVE_DIRECTED_BROADCAST_MOST

public static final Ip4.IpOption.OptionCode SELECTIVE_DIRECTED_BROADCAST_MOST
The SELECTIV e_ directe d_ broadcas t_ most.


DYNAMIC_PACKET_STATE

public static final Ip4.IpOption.OptionCode DYNAMIC_PACKET_STATE
The DYNAMI c_ packe t_ state.


UPSTREAM_MULTICAST_PACKET

public static final Ip4.IpOption.OptionCode UPSTREAM_MULTICAST_PACKET
The UPSTREA m_ multicas t_ packet.


QUICK_START

public static final Ip4.IpOption.OptionCode QUICK_START
The QUIC k_ start.

Field Detail

id

public final int id
The id.

Method Detail

values

public static Ip4.IpOption.OptionCode[] 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 (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 are 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
java.lang.NullPointerException - if the argument is null

valueOf

public static Ip4.IpOption.OptionCode valueOf(int id)
Value of.

Parameters:
id - the id
Returns:
the option code