Package org.pcap4j.packet.namednumber
Class EtherType
- 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
- Author:
- Kaito Yamada
- See Also:
- IANA Registry, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static EtherType
APPLETALK
Appletalk: 0x809bstatic EtherType
ARP
ARP: 0x0806static EtherType
DOT1Q_VLAN_TAGGED_FRAMES
IEEE 802.1Q VLAN-tagged frames: 0x8100static int
IEEE802_3_MAX_LENGTH
static EtherType
IPV4
IPv4: 0x0800static EtherType
IPV6
IPv6: 0x86ddstatic EtherType
MPLS
MPLS: 0x8847static EtherType
PPP
PPP: 0x880bstatic EtherType
PPPOE_DISCOVERY_STAGE
PPPoE Discovery Stage: 0x8863static EtherType
PPPOE_SESSION_STAGE
PPPoE Session Stage: 0x8864static EtherType
RARP
RARP: 0x8035
-
Constructor Summary
Constructors Constructor Description EtherType(java.lang.Short value, java.lang.String name)
-
Method Summary
Modifier and Type Method Description int
compareTo(EtherType o)
static EtherType
getInstance(java.lang.Short value)
static EtherType
register(EtherType type)
java.lang.String
toString()
java.lang.String
valueAsString()
-
Methods inherited from class org.pcap4j.packet.namednumber.NamedNumber
equals, hashCode, name, value
-
-
-
-
Field Detail
-
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
-
-
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:
valueAsString
in classNamedNumber<java.lang.Short,EtherType>
- Returns:
- a string representation of this value.
-
compareTo
public int compareTo(EtherType o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<EtherType>
- Specified by:
compareTo
in classNamedNumber<java.lang.Short,EtherType>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classNamedNumber<java.lang.Short,EtherType>
-
-