org.jnetpcap.protocol.network
Enum Arp.OpCode

java.lang.Object
  extended by java.lang.Enum<Arp.OpCode>
      extended by org.jnetpcap.protocol.network.Arp.OpCode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Arp.OpCode>
Enclosing class:
Arp

public static enum Arp.OpCode
extends java.lang.Enum<Arp.OpCode>

Definitions for all the possible ARP operations as specified by the operation field.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Enum Constant Summary
ARP_NAK
          The AR p_ nak.
DRARP_ERROR
          The DRAR p_ error.
DRARP_REPLY
          The DRAR p_ reply.
DRARP_REQUEST
          The DRAR p_ request.
IN_ARP_REPLY
          The I n_ ar p_ reply.
IN_ARP_REQUEST
          The I n_ ar p_ request.
MAPOS_UNARP
          The MAPO s_ unarp.
MARS_GROUP_LIST_REPLAY
          The MAR s_ grou p_ lis t_ replay.
MARS_GROUP_LIST_REQUEST
          The MAR s_ grou p_ lis t_ request.
MARS_JOIN
          The MAR s_ join.
MARS_LEAVE
          The MAR s_ leave.
MARS_MSERV
          The MAR s_ mserv.
MARS_MULTI
          The MAR s_ multi.
MARS_NAK
          The MAR s_ nak.
MARS_REDIRECT_MAP
          The MAR s_ redirec t_ map.
MARS_REQUEST
          The MAR s_ request.
MARS_SJOIN
          The MAR s_ sjoin.
MARS_SLEAVE
          The MAR s_ sleave.
MARS_UNSERV
          The MAR s_ unserv.
OP_EXP1
          The O p_ ex p1.
OP_EXP2
          The O p_ ex p2.
REPLY
          The REPLY.
REPLY_REVERSE
          The REPL y_ reverse.
REQUEST
          The REQUEST.
REQUEST_REVERSE
          The REQUES t_ reverse.
RESERVED1
          The RESERVE d1.
 
Method Summary
static Arp.OpCode valueOf(int value)
          Converts the operation field value to a constant.
static Arp.OpCode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Arp.OpCode[] 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

RESERVED1

public static final Arp.OpCode RESERVED1
The RESERVE d1.


REQUEST

public static final Arp.OpCode REQUEST
The REQUEST.


REPLY

public static final Arp.OpCode REPLY
The REPLY.


REQUEST_REVERSE

public static final Arp.OpCode REQUEST_REVERSE
The REQUES t_ reverse.


REPLY_REVERSE

public static final Arp.OpCode REPLY_REVERSE
The REPL y_ reverse.


DRARP_REQUEST

public static final Arp.OpCode DRARP_REQUEST
The DRAR p_ request.


DRARP_REPLY

public static final Arp.OpCode DRARP_REPLY
The DRAR p_ reply.


DRARP_ERROR

public static final Arp.OpCode DRARP_ERROR
The DRAR p_ error.


IN_ARP_REQUEST

public static final Arp.OpCode IN_ARP_REQUEST
The I n_ ar p_ request.


IN_ARP_REPLY

public static final Arp.OpCode IN_ARP_REPLY
The I n_ ar p_ reply.


ARP_NAK

public static final Arp.OpCode ARP_NAK
The AR p_ nak.


MARS_REQUEST

public static final Arp.OpCode MARS_REQUEST
The MAR s_ request.


MARS_MULTI

public static final Arp.OpCode MARS_MULTI
The MAR s_ multi.


MARS_MSERV

public static final Arp.OpCode MARS_MSERV
The MAR s_ mserv.


MARS_JOIN

public static final Arp.OpCode MARS_JOIN
The MAR s_ join.


MARS_LEAVE

public static final Arp.OpCode MARS_LEAVE
The MAR s_ leave.


MARS_NAK

public static final Arp.OpCode MARS_NAK
The MAR s_ nak.


MARS_UNSERV

public static final Arp.OpCode MARS_UNSERV
The MAR s_ unserv.


MARS_SJOIN

public static final Arp.OpCode MARS_SJOIN
The MAR s_ sjoin.


MARS_SLEAVE

public static final Arp.OpCode MARS_SLEAVE
The MAR s_ sleave.


MARS_GROUP_LIST_REQUEST

public static final Arp.OpCode MARS_GROUP_LIST_REQUEST
The MAR s_ grou p_ lis t_ request.


MARS_GROUP_LIST_REPLAY

public static final Arp.OpCode MARS_GROUP_LIST_REPLAY
The MAR s_ grou p_ lis t_ replay.


MARS_REDIRECT_MAP

public static final Arp.OpCode MARS_REDIRECT_MAP
The MAR s_ redirec t_ map.


MAPOS_UNARP

public static final Arp.OpCode MAPOS_UNARP
The MAPO s_ unarp.


OP_EXP1

public static final Arp.OpCode OP_EXP1
The O p_ ex p1.


OP_EXP2

public static final Arp.OpCode OP_EXP2
The O p_ ex p2.

Method Detail

values

public static Arp.OpCode[] 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 (Arp.OpCode c : Arp.OpCode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Arp.OpCode 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 Arp.OpCode valueOf(int value)
Converts the operation field value to a constant.

Parameters:
value - operation field value
Returns:
constant or null