Package org.onlab.packet
Enum EthType.EtherType
- java.lang.Object
-
- java.lang.Enum<EthType.EtherType>
-
- org.onlab.packet.EthType.EtherType
-
- All Implemented Interfaces:
Serializable
,Comparable<EthType.EtherType>
- Enclosing class:
- EthType
public static enum EthType.EtherType extends Enum<EthType.EtherType>
A list of known ethertypes. Adding a fully defined enum here will associated the ethertype with a textual representation and a parsing class.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Deserializer<?>
deserializer()
EthType
ethType()
static EthType.EtherType
lookup(short etherType)
String
toString()
static EthType.EtherType
valueOf(String name)
Returns the enum constant of this type with the specified name.static EthType.EtherType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ARP
public static final EthType.EtherType ARP
-
RARP
public static final EthType.EtherType RARP
-
IPV4
public static final EthType.EtherType IPV4
-
IPV6
public static final EthType.EtherType IPV6
-
LLDP
public static final EthType.EtherType LLDP
-
VLAN
public static final EthType.EtherType VLAN
-
QINQ
public static final EthType.EtherType QINQ
-
BDDP
public static final EthType.EtherType BDDP
-
MPLS_UNICAST
public static final EthType.EtherType MPLS_UNICAST
-
MPLS_MULTICAST
public static final EthType.EtherType MPLS_MULTICAST
-
EAPOL
public static final EthType.EtherType EAPOL
-
PPPoED
public static final EthType.EtherType PPPoED
-
SLOW
public static final EthType.EtherType SLOW
-
UNKNOWN
public static final EthType.EtherType UNKNOWN
-
-
Method Detail
-
values
public static EthType.EtherType[] 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 (EthType.EtherType c : EthType.EtherType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EthType.EtherType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
ethType
public EthType ethType()
-
toString
public String toString()
- Overrides:
toString
in classEnum<EthType.EtherType>
-
deserializer
public Deserializer<?> deserializer()
-
lookup
public static EthType.EtherType lookup(short etherType)
-
-