Top | ![]() |
![]() |
![]() |
![]() |
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
#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]; };