public enum NetworkAdapterPromiscModePolicy extends java.lang.Enum<NetworkAdapterPromiscModePolicy>
{C963768A-376F-4C85-8D84-D8CED4B7269E}
Enum Constant and Description |
---|
AllowAll
Allow promiscuous mode, include unrelated traffic going over the wire
and internally on the host.
|
AllowNetwork
Allow promiscuous mode, but restrict the scope it to the internal
network so that it only applies to other VMs.
|
Deny
Deny promiscuous mode requests.
|
Modifier and Type | Method and Description |
---|---|
static NetworkAdapterPromiscModePolicy |
fromValue(long v) |
static NetworkAdapterPromiscModePolicy |
fromValue(java.lang.String v) |
int |
value() |
static NetworkAdapterPromiscModePolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NetworkAdapterPromiscModePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NetworkAdapterPromiscModePolicy Deny
public static final NetworkAdapterPromiscModePolicy AllowNetwork
public static final NetworkAdapterPromiscModePolicy AllowAll
public static NetworkAdapterPromiscModePolicy[] values()
for (NetworkAdapterPromiscModePolicy c : NetworkAdapterPromiscModePolicy.values()) System.out.println(c);
public static NetworkAdapterPromiscModePolicy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int value()
public static NetworkAdapterPromiscModePolicy fromValue(long v)
public static NetworkAdapterPromiscModePolicy fromValue(java.lang.String v)