GVirSandboxConfigNetworkRoute

GVirSandboxConfigNetworkRoute

Functions

Properties

GInetAddress * gateway Read / Write / Construct Only
guint prefix Read / Write / Construct Only
GInetAddress * target Read / Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── GVirSandboxConfigNetworkRoute

Description

Functions

gvir_sandbox_config_network_route_new ()

GVirSandboxConfigNetworkRoute *
gvir_sandbox_config_network_route_new (GInetAddress *target,
                                       guint prefix,
                                       GInetAddress *gateway);

Create a new network route config.

Parameters

target

the target address

 

prefix

the prefix length

 

gateway

the gateway device

 

Returns

a new sandbox network route object.

[transfer full]


gvir_sandbox_config_network_route_set_prefix ()

void
gvir_sandbox_config_network_route_set_prefix
                               (GVirSandboxConfigNetworkRoute *config,
                                guint prefix);

Sets the prefix for an interface route

Parameters

config

the sandbox network route config.

[transfer none]

prefix

prefix length

 

gvir_sandbox_config_network_route_get_prefix ()

guint
gvir_sandbox_config_network_route_get_prefix
                               (GVirSandboxConfigNetworkRoute *config);

Retrieves the prefix length of the route

Parameters

config

the sandbox network route config.

[transfer none]

Returns

the prefix length


gvir_sandbox_config_network_route_set_gateway ()

void
gvir_sandbox_config_network_route_set_gateway
                               (GVirSandboxConfigNetworkRoute *config,
                                GInetAddress *addr);

Sets the interface gateway device

Parameters

config

the sandbox network route config.

[transfer none]

addr

the gateway device.

[transfer none]

gvir_sandbox_config_network_route_get_gateway ()

GInetAddress *
gvir_sandbox_config_network_route_get_gateway
                               (GVirSandboxConfigNetworkRoute *config);

Retrieves the network gateway address

Parameters

config

the sandbox network route config.

[transfer none]

Returns

the gateway address.

[transfer none]


gvir_sandbox_config_network_route_set_target ()

void
gvir_sandbox_config_network_route_set_target
                               (GVirSandboxConfigNetworkRoute *config,
                                GInetAddress *addr);

Sets the interface route target address

Parameters

config

the sandbox network route config.

[transfer none]

addr

the target address.

[transfer none]

gvir_sandbox_config_network_route_get_target ()

GInetAddress *
gvir_sandbox_config_network_route_get_target
                               (GVirSandboxConfigNetworkRoute *config);

Retrieves the route target address

Parameters

config

the sandbox network route config.

[transfer none]

Returns

the target address.

[transfer none]

Types and Values

GVIR_SANDBOX_TYPE_CONFIG_NETWORK_ROUTE_HANDLE

#define GVIR_SANDBOX_TYPE_CONFIG_NETWORK_ROUTE_HANDLE      (gvir_sandbox_config_network_route_handle_get_type ())

struct GVirSandboxConfigNetworkRoute

struct GVirSandboxConfigNetworkRoute;

struct GVirSandboxConfigNetworkRouteClass

struct GVirSandboxConfigNetworkRouteClass {
    GObjectClass parent_class;

    gpointer padding[LIBVIRT_SANDBOX_CLASS_PADDING];
};

GVirSandboxConfigNetworkRoutePrivate

typedef struct _GVirSandboxConfigNetworkRoutePrivate GVirSandboxConfigNetworkRoutePrivate;

Property Details

The “gateway” property

  “gateway”                  GInetAddress *

Gateway device.

Flags: Read / Write / Construct Only


The “prefix” property

  “prefix”                   guint

Prefix length.

Flags: Read / Write / Construct Only

Allowed values: <= 128

Default value: 24


The “target” property

  “target”                   GInetAddress *

Target address.

Flags: Read / Write / Construct Only