Function libzt::zts_core_query_route [−][src]
pub unsafe extern "C" fn zts_core_query_route(
net_id: u64,
idx: c_uint,
target: *mut c_char,
via: *mut c_char,
len: c_uint,
flags: *mut u16,
metric: *mut u16
) -> c_int
Expand description
@brief Lock the core service so that queries about addresses, routes, paths, etc. can be performed.
Notice: Core locking functions are intended to be used by high-level language wrappers. Only lock the core if you know exactly what you are doing. zts_core_lock_obtain() and zts_core_lock_release() must be called before and after this function.
@return ZTS_ERR_OK
if successful. ZTS_ERR_SERVICE
if the core service is unavailable.