Top | ![]() |
![]() |
![]() |
![]() |
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
#define GVIR_SANDBOX_TYPE_CONFIG_NETWORK_ADDRESS_HANDLE (gvir_sandbox_config_network_address_handle_get_type ())
struct GVirSandboxConfigNetworkAddressClass { GObjectClass parent_class; gpointer padding[LIBVIRT_SANDBOX_CLASS_PADDING]; };