Top | ![]() |
![]() |
![]() |
![]() |
GInetAddress * | gateway | Read / Write / Construct Only |
guint | prefix | Read / Write / Construct Only |
GInetAddress * | target | Read / Write / Construct Only |
#define GVIR_SANDBOX_TYPE_CONFIG_NETWORK_ROUTE_HANDLE (gvir_sandbox_config_network_route_handle_get_type ())
GVirSandboxConfigNetworkRoute * gvir_sandbox_config_network_route_new (GInetAddress *target
,guint prefix
,GInetAddress *gateway
);
Create a new network route config.
void gvir_sandbox_config_network_route_set_prefix (GVirSandboxConfigNetworkRoute *config
,guint prefix
);
Sets the prefix for an interface route
guint
gvir_sandbox_config_network_route_get_prefix
(GVirSandboxConfigNetworkRoute *config
);
Retrieves the prefix length of the route
void gvir_sandbox_config_network_route_set_gateway (GVirSandboxConfigNetworkRoute *config
,GInetAddress *addr
);
Sets the interface gateway device
GInetAddress *
gvir_sandbox_config_network_route_get_gateway
(GVirSandboxConfigNetworkRoute *config
);
Retrieves the network gateway address
void gvir_sandbox_config_network_route_set_target (GVirSandboxConfigNetworkRoute *config
,GInetAddress *addr
);
Sets the interface route target address
GInetAddress *
gvir_sandbox_config_network_route_get_target
(GVirSandboxConfigNetworkRoute *config
);
Retrieves the route target address
struct GVirSandboxConfigNetworkRouteClass { GObjectClass parent_class; gpointer padding[LIBVIRT_SANDBOX_CLASS_PADDING]; };
“gateway”
property“gateway” GInetAddress *
Gateway device.
Flags: Read / Write / Construct Only
“prefix”
property“prefix” guint
Prefix length.
Flags: Read / Write / Construct Only
Allowed values: <= 128
Default value: 24