public enum RtProtocol extends Enum<RtProtocol>
This is a subset of the protocol values used in rtnetlink. Taken from linux/rtnetlink.h
| Enum Constant and Description |
|---|
BIRD
BIRD.
|
BOOT
Route installed during boot.
|
DHCP
DHCP client.
|
DNROUTED
DECnet routing daemon.
|
GATED
GateD.
|
KERNEL
Route installed by kernel.
|
MROUTED
Multicast daemon.
|
MRT
Merit MRT.
|
NTK
Netsukuku.
|
RA
RDISC/ND router advertisements.
|
REDIRECT
Route installed by ICMP redirects.
|
STATIC
Route installed by administrator.
|
UNKNOWN
Unknown.
|
UNSPEC
Unspecified.
|
XORP
XORP.
|
ZEBRA
Zebra.
|
| Modifier and Type | Method and Description |
|---|---|
static RtProtocol |
get(short value)
Gets the RtProtocol for the given integer value.
|
short |
value()
Returns the value.
|
static RtProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RtProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RtProtocol UNSPEC
public static final RtProtocol REDIRECT
public static final RtProtocol KERNEL
public static final RtProtocol BOOT
public static final RtProtocol STATIC
public static final RtProtocol GATED
public static final RtProtocol RA
public static final RtProtocol MRT
public static final RtProtocol ZEBRA
public static final RtProtocol BIRD
public static final RtProtocol DNROUTED
public static final RtProtocol XORP
public static final RtProtocol NTK
public static final RtProtocol DHCP
public static final RtProtocol MROUTED
public static final RtProtocol UNKNOWN
public static RtProtocol[] values()
for (RtProtocol c : RtProtocol.values()) System.out.println(c);
public static RtProtocol 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 short value()
public static RtProtocol get(short value)
value - value