![]() |
![]() |
![]() |
Libvirt-sandbox Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#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
);
"gateway" GInetAddress* : Read / Write / Construct Only "prefix" guint : Read / Write / Construct Only "target" GInetAddress* : Read / Write / Construct Only
#define GVIR_SANDBOX_TYPE_CONFIG_NETWORK_ROUTE_HANDLE (gvir_sandbox_config_network_route_handle_get_type ())
struct GVirSandboxConfigNetworkRouteClass { GObjectClass parent_class; gpointer padding[LIBVIRT_SANDBOX_CLASS_PADDING]; };
GVirSandboxConfigNetworkRoute * gvir_sandbox_config_network_route_new (GInetAddress *target
,guint prefix
,GInetAddress *gateway
);
Create a new network route config.
|
the target address |
|
the prefix length |
|
the gateway device |
Returns : |
a new sandbox network route object. [transfer full] |
void gvir_sandbox_config_network_route_set_prefix (GVirSandboxConfigNetworkRoute *config
,guint prefix
);
Sets the prefix for an interface route
|
the sandbox network route config. [transfer none] |
|
prefix length |
guint gvir_sandbox_config_network_route_get_prefix
(GVirSandboxConfigNetworkRoute *config
);
Retrieves the prefix length of the route
|
the sandbox network route config. [transfer none] |
Returns : |
the prefix length. [transfer none] |
void gvir_sandbox_config_network_route_set_gateway (GVirSandboxConfigNetworkRoute *config
,GInetAddress *addr
);
Sets the interface gateway device
|
the sandbox network route config. [transfer none] |
|
the gateway device. [transfer none] |
GInetAddress * gvir_sandbox_config_network_route_get_gateway
(GVirSandboxConfigNetworkRoute *config
);
Retrieves the network gateway address
|
the sandbox network route config. [transfer none] |
Returns : |
the gateway address. [transfer none] |
void gvir_sandbox_config_network_route_set_target (GVirSandboxConfigNetworkRoute *config
,GInetAddress *addr
);
Sets the interface route target address
|
the sandbox network route config. [transfer none] |
|
the target address. [transfer none] |
GInetAddress * gvir_sandbox_config_network_route_get_target
(GVirSandboxConfigNetworkRoute *config
);
Retrieves the route target address
|
the sandbox network route config. [transfer none] |
Returns : |
the target address. [transfer none] |
"prefix"
property"prefix" guint : Read / Write / Construct Only
Prefix length.
Allowed values: <= 128
Default value: 24