riot_sys

Function l2util_ipv6_group_to_l2_group

Source
pub unsafe extern "C" fn l2util_ipv6_group_to_l2_group(
    dev_type: c_int,
    ipv6_group: *const ipv6_addr_t,
    l2_group: *mut u8,
) -> c_int
Expand description

@brief Converts an IPv6 multicast address to a multicast address of the respective link layer.

@pre There is enough allocated space in @p l2_group for an address for a device of type @p dev_type (e.g. 6 bytes for an ethernet address).

@param[in] dev_type The network device type of the device @p l2_addr should be generated for. @param[in] ipv6_group An IPv6 multicast address. @param[out] l2_group A link layer multicast address

@return Length of @p l2_group in bytes @return -ENOTSUP if link layer does not support multicast.