riot_sys

Function ipv6_addr_match_prefix

Source
pub unsafe extern "C" fn ipv6_addr_match_prefix(
    a: *const ipv6_addr_t,
    b: *const ipv6_addr_t,
) -> u8
Expand description

@brief Checks up to which bit-count two IPv6 addresses match in their prefix.

@param[in] a An IPv6 address. @param[in] b Another IPv6 address.

@return The number of bits @p a and @p b match in their prefix