Skip to main content

krun_set_gvproxy_path

Function krun_set_gvproxy_path 

Source
pub unsafe extern "C" fn krun_set_gvproxy_path(
    ctx_id: u32,
    c_path: *mut c_char,
) -> i32
Expand description

DEPRECATED. Use krun_add_net_unixgram instead.

Configures the networking to use gvproxy in vfkit mode. Call to this function disables TSI backend to use gvproxy instead.

Arguments: “ctx_id” - the configuration context ID. “c_path” - a null-terminated string representing the path for gvproxy’s listen-vfkit unixdgram socket.

Notes: If you never call this function, networking uses the TSI backend. This function should be called before krun_set_port_map.

Returns: Zero on success or a negative error number on failure.