riot_sys::bindgen

Function ipv6_prefix_from_str

Source
pub unsafe extern "C" fn ipv6_prefix_from_str(
    result: *mut ipv6_addr_t,
    prefix: *const c_char,
) -> c_int
Expand description

@brief Converts an IPv6 prefix string representation to a byte-represented IPv6 address

@see RFC 5952

@param[out] result The resulting byte representation @param[in] prefix An IPv6 prefix string representation

@return prefix length in bits, on success @return <0 on error