- java.lang.Object
-
- org.pcap4j.packet.namednumber.NamedNumber<java.lang.Short,ArpOperation>
-
- org.pcap4j.packet.namednumber.ArpOperation
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ArpOperation>
public final class ArpOperation extends NamedNumber<java.lang.Short,ArpOperation>
ARP Operation Code- Since:
- pcap4j 0.9.1
- See Also:
- IANA Registry, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ArpOperationARP_NAKARP-NAK: 10static ArpOperationDRARP_ERRORDRARP-Error: 7static ArpOperationDRARP_REPLYDRARP-Reply: 6static ArpOperationDRARP_REQUESTDRARP-Request: 5static ArpOperationINARP_REPLYInARP-Reply: 9static ArpOperationINARP_REQUESTInARP-Request: 8static ArpOperationMAPOS_UNARPMAPOS-UNARP: 23static ArpOperationMARS_GROUPLIST_REPLYMARS-Grouplist-Reply: 21static ArpOperationMARS_GROUPLIST_REQUESTMARS-Grouplist-Request: 20static ArpOperationMARS_JOINMARS-Join: 14static ArpOperationMARS_LEAVEMARS-Leave: 15static ArpOperationMARS_MSERVMARS-MServ: 13static ArpOperationMARS_MULTIMARS-Multi: 12static ArpOperationMARS_NAKMARS-NAK: 16static ArpOperationMARS_REDIRECT_MAPMARS-Redirect-Map: 22static ArpOperationMARS_REQUESTMARS-Request: 11static ArpOperationMARS_SJOINMARS-SJoin: 18static ArpOperationMARS_SLEAVEMARS-SLeave: 19static ArpOperationMARS_UNSERVMARS-Unserv: 17static ArpOperationOP_EXP1OP_EXP1: 24static ArpOperationOP_EXP2OP_EXP2: 25private static java.util.Map<java.lang.Short,ArpOperation>registrystatic ArpOperationREPLYREPLY: 2static ArpOperationREPLY_REVERSEreply Reverse: 4static ArpOperationREQUESTREQUEST: 1static ArpOperationREQUEST_REVERSErequest Reverse: 3private static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description ArpOperation(java.lang.Short value, java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ArpOperation o)static ArpOperationgetInstance(java.lang.Short value)static ArpOperationregister(ArpOperation operation)java.lang.StringvalueAsString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
REQUEST
public static final ArpOperation REQUEST
REQUEST: 1
-
REPLY
public static final ArpOperation REPLY
REPLY: 2
-
REQUEST_REVERSE
public static final ArpOperation REQUEST_REVERSE
request Reverse: 3
-
REPLY_REVERSE
public static final ArpOperation REPLY_REVERSE
reply Reverse: 4
-
DRARP_REQUEST
public static final ArpOperation DRARP_REQUEST
DRARP-Request: 5
-
DRARP_REPLY
public static final ArpOperation DRARP_REPLY
DRARP-Reply: 6
-
DRARP_ERROR
public static final ArpOperation DRARP_ERROR
DRARP-Error: 7
-
INARP_REQUEST
public static final ArpOperation INARP_REQUEST
InARP-Request: 8
-
INARP_REPLY
public static final ArpOperation INARP_REPLY
InARP-Reply: 9
-
ARP_NAK
public static final ArpOperation ARP_NAK
ARP-NAK: 10
-
MARS_REQUEST
public static final ArpOperation MARS_REQUEST
MARS-Request: 11
-
MARS_MULTI
public static final ArpOperation MARS_MULTI
MARS-Multi: 12
-
MARS_MSERV
public static final ArpOperation MARS_MSERV
MARS-MServ: 13
-
MARS_JOIN
public static final ArpOperation MARS_JOIN
MARS-Join: 14
-
MARS_LEAVE
public static final ArpOperation MARS_LEAVE
MARS-Leave: 15
-
MARS_NAK
public static final ArpOperation MARS_NAK
MARS-NAK: 16
-
MARS_UNSERV
public static final ArpOperation MARS_UNSERV
MARS-Unserv: 17
-
MARS_SJOIN
public static final ArpOperation MARS_SJOIN
MARS-SJoin: 18
-
MARS_SLEAVE
public static final ArpOperation MARS_SLEAVE
MARS-SLeave: 19
-
MARS_GROUPLIST_REQUEST
public static final ArpOperation MARS_GROUPLIST_REQUEST
MARS-Grouplist-Request: 20
-
MARS_GROUPLIST_REPLY
public static final ArpOperation MARS_GROUPLIST_REPLY
MARS-Grouplist-Reply: 21
-
MARS_REDIRECT_MAP
public static final ArpOperation MARS_REDIRECT_MAP
MARS-Redirect-Map: 22
-
MAPOS_UNARP
public static final ArpOperation MAPOS_UNARP
MAPOS-UNARP: 23
-
OP_EXP1
public static final ArpOperation OP_EXP1
OP_EXP1: 24
-
OP_EXP2
public static final ArpOperation OP_EXP2
OP_EXP2: 25
-
registry
private static final java.util.Map<java.lang.Short,ArpOperation> registry
-
-
Method Detail
-
getInstance
public static ArpOperation getInstance(java.lang.Short value)
- Parameters:
value- value- Returns:
- a ArpOperation object.
-
register
public static ArpOperation register(ArpOperation operation)
- Parameters:
operation- operation- Returns:
- a ArpOperation object.
-
valueAsString
public java.lang.String valueAsString()
- Overrides:
valueAsStringin classNamedNumber<java.lang.Short,ArpOperation>- Returns:
- a string representation of this value.
-
compareTo
public int compareTo(ArpOperation o)
- Specified by:
compareToin interfacejava.lang.Comparable<ArpOperation>- Specified by:
compareToin classNamedNumber<java.lang.Short,ArpOperation>
-
-