riot_sys::bindgen

Function ipv6_addr_init_prefix

Source
pub unsafe extern "C" fn ipv6_addr_init_prefix(
    out: *mut ipv6_addr_t,
    prefix: *const ipv6_addr_t,
    bits: u8,
)
Expand description

@brief Sets IPv6 address @p out with the first @p bits taken from @p prefix and leaves the remaining bits untouched.

@param[out] out Prefix to be set. @param[in] prefix Address to take prefix from. @param[in] bits Bits to be copied from @p prefix to @p out (set to 128 when greater than 128).