| Top |
| GInetAddress * | broadcast | Read / Write / Construct Only |
| guint | prefix | Read / Write / Construct Only |
| GInetAddress * | primary | Read / Write / Construct Only |
#define GVIR_SANDBOX_TYPE_CONFIG_NETWORK_ADDRESS_HANDLE (gvir_sandbox_config_network_address_handle_get_type ())
GVirSandboxConfigNetworkAddress * gvir_sandbox_config_network_address_new (GInetAddress *primary,guint prefix,GInetAddress *broadcast);
Create a new network address config. Only the primary
parameter
is required to be non-NULL. The broadcast
address
will be automatically filled in, if not otherwise specified
void gvir_sandbox_config_network_address_set_primary (GVirSandboxConfigNetworkAddress *config,GInetAddress *addr);
Sets the interface primary address
GInetAddress *
gvir_sandbox_config_network_address_get_primary
(GVirSandboxConfigNetworkAddress *config);
Retrieves the primary address
void gvir_sandbox_config_network_address_set_prefix (GVirSandboxConfigNetworkAddress *config,guint prefix);
Sets the interface network prefix
guint
gvir_sandbox_config_network_address_get_prefix
(GVirSandboxConfigNetworkAddress *config);
Retrieves the network prefix
void gvir_sandbox_config_network_address_set_broadcast (GVirSandboxConfigNetworkAddress *config,GInetAddress *addr);
Sets the interface broadcast address
GInetAddress *
gvir_sandbox_config_network_address_get_broadcast
(GVirSandboxConfigNetworkAddress *config);
Retrieves the broadcast address
struct GVirSandboxConfigNetworkAddressClass {
GObjectClass parent_class;
gpointer padding[LIBVIRT_SANDBOX_CLASS_PADDING];
};
“broadcast” property“broadcast” GInetAddress *
Broadcast address.
Flags: Read / Write / Construct Only
“prefix” property“prefix” guint
Network prefix.
Flags: Read / Write / Construct Only
Allowed values: <= 128
Default value: 24
“primary” property“primary” GInetAddress *
Primary address.
Flags: Read / Write / Construct Only