GVirSandboxConfigNetworkAddress

GVirSandboxConfigNetworkAddress

Functions

Properties

GInetAddress * broadcast Read / Write / Construct Only
guint prefix Read / Write / Construct Only
GInetAddress * primary Read / Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── GVirSandboxConfigNetworkAddress

Description

Functions

gvir_sandbox_config_network_address_new ()

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

Parameters

primary

the primary address

 

prefix

the network prefix

 

broadcast

the broadcast address (optional)

 

Returns

a new sandbox network_address object.

[transfer full]


gvir_sandbox_config_network_address_set_primary ()

void
gvir_sandbox_config_network_address_set_primary
                               (GVirSandboxConfigNetworkAddress *config,
                                GInetAddress *addr);

Sets the interface primary address

Parameters

config

the sandbox network address config.

[transfer none]

addr

the primary address.

[transfer none]

gvir_sandbox_config_network_address_get_primary ()

GInetAddress *
gvir_sandbox_config_network_address_get_primary
                               (GVirSandboxConfigNetworkAddress *config);

Retrieves the primary address

Parameters

config

the sandbox network address config.

[transfer none]

Returns

the primary address.

[transfer none]


gvir_sandbox_config_network_address_set_prefix ()

void
gvir_sandbox_config_network_address_set_prefix
                               (GVirSandboxConfigNetworkAddress *config,
                                guint prefix);

Sets the interface network prefix

Parameters

config

the sandbox network address config.

[transfer none]

prefix

the prefix length

 

gvir_sandbox_config_network_address_get_prefix ()

guint
gvir_sandbox_config_network_address_get_prefix
                               (GVirSandboxConfigNetworkAddress *config);

Retrieves the network prefix

Parameters

config

the sandbox network address config.

[transfer none]

Returns

the network prefix


gvir_sandbox_config_network_address_set_broadcast ()

void
gvir_sandbox_config_network_address_set_broadcast
                               (GVirSandboxConfigNetworkAddress *config,
                                GInetAddress *addr);

Sets the interface broadcast address

Parameters

config

the sandbox network address config.

[transfer none]

addr

the broadcast address.

[transfer none]

gvir_sandbox_config_network_address_get_broadcast ()

GInetAddress *
gvir_sandbox_config_network_address_get_broadcast
                               (GVirSandboxConfigNetworkAddress *config);

Retrieves the broadcast address

Parameters

config

the sandbox network address config.

[transfer none]

Returns

the broadcast address.

[transfer none]

Types and Values

GVIR_SANDBOX_TYPE_CONFIG_NETWORK_ADDRESS_HANDLE

#define GVIR_SANDBOX_TYPE_CONFIG_NETWORK_ADDRESS_HANDLE      (gvir_sandbox_config_network_address_handle_get_type ())

struct GVirSandboxConfigNetworkAddress

struct GVirSandboxConfigNetworkAddress;

struct GVirSandboxConfigNetworkAddressClass

struct GVirSandboxConfigNetworkAddressClass {
    GObjectClass parent_class;

    gpointer padding[LIBVIRT_SANDBOX_CLASS_PADDING];
};

GVirSandboxConfigNetworkAddressPrivate

typedef struct _GVirSandboxConfigNetworkAddressPrivate GVirSandboxConfigNetworkAddressPrivate;

Property Details

The “broadcast” property

  “broadcast”                GInetAddress *

Broadcast address.

Flags: Read / Write / Construct Only


The “prefix” property

  “prefix”                   guint

Network prefix.

Flags: Read / Write / Construct Only

Allowed values: <= 128

Default value: 24


The “primary” property

  “primary”                  GInetAddress *

Primary address.

Flags: Read / Write / Construct Only