GVirSandboxConfigNetworkRoute

GVirSandboxConfigNetworkRoute

Synopsis

#define             GVIR_SANDBOX_TYPE_CONFIG_NETWORK_ROUTE_HANDLE
struct              GVirSandboxConfigNetworkRoute;
struct              GVirSandboxConfigNetworkRouteClass;
GVirSandboxConfigNetworkRoute * gvir_sandbox_config_network_route_new
                                                        (GInetAddress *target,
                                                         guint prefix,
                                                         GInetAddress *gateway);
void                gvir_sandbox_config_network_route_set_prefix
                                                        (GVirSandboxConfigNetworkRoute *config,
                                                         guint prefix);
guint               gvir_sandbox_config_network_route_get_prefix
                                                        (GVirSandboxConfigNetworkRoute *config);
void                gvir_sandbox_config_network_route_set_gateway
                                                        (GVirSandboxConfigNetworkRoute *config,
                                                         GInetAddress *addr);
GInetAddress *      gvir_sandbox_config_network_route_get_gateway
                                                        (GVirSandboxConfigNetworkRoute *config);
void                gvir_sandbox_config_network_route_set_target
                                                        (GVirSandboxConfigNetworkRoute *config,
                                                         GInetAddress *addr);
GInetAddress *      gvir_sandbox_config_network_route_get_target
                                                        (GVirSandboxConfigNetworkRoute *config);

Object Hierarchy

  GObject
   +----GVirSandboxConfigNetworkRoute

Properties

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

Description

Details

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];
};

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.

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

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

config :

the sandbox network route config. [transfer none]

Returns :

the prefix length. [transfer none]

gvir_sandbox_config_network_route_set_gateway ()

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

Sets the interface gateway device

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

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

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

config :

the sandbox network route config. [transfer none]

Returns :

the target address. [transfer none]

Property Details

The "gateway" property

  "gateway"                  GInetAddress*         : Read / Write / Construct Only

Gateway device.


The "prefix" property

  "prefix"                   guint                 : Read / Write / Construct Only

Prefix length.

Allowed values: <= 128

Default value: 24


The "target" property

  "target"                   GInetAddress*         : Read / Write / Construct Only

Target address.