- java.lang.Object
-
- org.pcap4j.packet.namednumber.NamedNumber<java.lang.Short,EtherType>
-
- org.pcap4j.packet.namednumber.EtherType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<EtherType>
public final class EtherType extends NamedNumber<java.lang.Short,EtherType>
Ether Type- Since:
- pcap4j 0.9.1
- See Also:
- IANA Registry, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static EtherTypeAPPLETALKAppletalk: 0x809bstatic EtherTypeARPARP: 0x0806static EtherTypeDOT1Q_VLAN_TAGGED_FRAMESIEEE 802.1Q VLAN-tagged frames: 0x8100static intIEEE802_3_MAX_LENGTHstatic EtherTypeIPV4IPv4: 0x0800static EtherTypeIPV6IPv6: 0x86ddstatic EtherTypeMPLSMPLS: 0x8847static EtherTypePPPPPP: 0x880bstatic EtherTypePPPOE_DISCOVERY_STAGEPPPoE Discovery Stage: 0x8863static EtherTypePPPOE_SESSION_STAGEPPPoE Session Stage: 0x8864static EtherTypeRARPRARP: 0x8035private static java.util.Map<java.lang.Short,EtherType>registryprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description EtherType(java.lang.Short value, java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(EtherType o)static EtherTypegetInstance(java.lang.Short value)static EtherTyperegister(EtherType type)java.lang.StringtoString()java.lang.StringvalueAsString()-
Methods inherited from class org.pcap4j.packet.namednumber.NamedNumber
equals, hashCode, name, value
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
IEEE802_3_MAX_LENGTH
public static final int IEEE802_3_MAX_LENGTH
- See Also:
- Constant Field Values
-
IPV4
public static final EtherType IPV4
IPv4: 0x0800
-
ARP
public static final EtherType ARP
ARP: 0x0806
-
DOT1Q_VLAN_TAGGED_FRAMES
public static final EtherType DOT1Q_VLAN_TAGGED_FRAMES
IEEE 802.1Q VLAN-tagged frames: 0x8100
-
RARP
public static final EtherType RARP
RARP: 0x8035
-
APPLETALK
public static final EtherType APPLETALK
Appletalk: 0x809b
-
IPV6
public static final EtherType IPV6
IPv6: 0x86dd
-
PPP
public static final EtherType PPP
PPP: 0x880b
-
MPLS
public static final EtherType MPLS
MPLS: 0x8847
-
PPPOE_DISCOVERY_STAGE
public static final EtherType PPPOE_DISCOVERY_STAGE
PPPoE Discovery Stage: 0x8863
-
PPPOE_SESSION_STAGE
public static final EtherType PPPOE_SESSION_STAGE
PPPoE Session Stage: 0x8864
-
registry
private static final java.util.Map<java.lang.Short,EtherType> registry
-
-
Method Detail
-
getInstance
public static EtherType getInstance(java.lang.Short value)
- Parameters:
value- value- Returns:
- a EtherType object.
-
register
public static EtherType register(EtherType type)
- Parameters:
type- type- Returns:
- a EtherType object.
-
valueAsString
public java.lang.String valueAsString()
- Overrides:
valueAsStringin classNamedNumber<java.lang.Short,EtherType>- Returns:
- a string representation of this value.
-
compareTo
public int compareTo(EtherType o)
- Specified by:
compareToin interfacejava.lang.Comparable<EtherType>- Specified by:
compareToin classNamedNumber<java.lang.Short,EtherType>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classNamedNumber<java.lang.Short,EtherType>
-
-