public static enum PppEthernet.Code extends Enum<PppEthernet.Code> implements ProtocolEnum
| Enum Constant and Description |
|---|
PADI
PPPoE Active Discovery Initiation (PADI) packet.
|
PADO
PPPoE Active Discovery Offer (PADO) packet.
|
PADR
PPPoE Active Discovery Request (PADR) packet.
|
PADS
PPPoE Active Discovery Session-confirmation (PADS) packet.
|
PADT
PPPoE Active Discovery Terminate (PADT) packet.
|
SESSION_DATA
PPP Session stage/data.
|
| Modifier and Type | Method and Description |
|---|---|
int |
code()
Returns the code value for the enumeration constant.
|
static PppEthernet.Code |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PppEthernet.Code[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PppEthernet.Code SESSION_DATA
public static final PppEthernet.Code PADO
public static final PppEthernet.Code PADI
public static final PppEthernet.Code PADR
public static final PppEthernet.Code PADS
public static final PppEthernet.Code PADT
public static PppEthernet.Code[] values()
for (PppEthernet.Code c : PppEthernet.Code.values()) System.out.println(c);
public static PppEthernet.Code valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic int code()
ProtocolEnumcode in interface ProtocolEnumCopyright © 2014. All Rights Reserved.