org.virtualbox_6_1
Enum NetworkAdapterPromiscModePolicy

java.lang.Object
  extended by java.lang.Enum<NetworkAdapterPromiscModePolicy>
      extended by org.virtualbox_6_1.NetworkAdapterPromiscModePolicy
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<NetworkAdapterPromiscModePolicy>

public enum NetworkAdapterPromiscModePolicy
extends java.lang.Enum<NetworkAdapterPromiscModePolicy>

The promiscuous mode policy of an interface. Interface ID: {C963768A-376F-4C85-8D84-D8CED4B7269E}


Enum Constant Summary
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.
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Deny

public static final NetworkAdapterPromiscModePolicy Deny
Deny promiscuous mode requests.


AllowNetwork

public static final NetworkAdapterPromiscModePolicy AllowNetwork
Allow promiscuous mode, but restrict the scope it to the internal network so that it only applies to other VMs.


AllowAll

public static final NetworkAdapterPromiscModePolicy AllowAll
Allow promiscuous mode, include unrelated traffic going over the wire and internally on the host.

Method Detail

values

public static NetworkAdapterPromiscModePolicy[] 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 (NetworkAdapterPromiscModePolicy c : NetworkAdapterPromiscModePolicy.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NetworkAdapterPromiscModePolicy valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

value

public int value()

fromValue

public static NetworkAdapterPromiscModePolicy fromValue(long v)

fromValue

public static NetworkAdapterPromiscModePolicy fromValue(java.lang.String v)