riot_sys

Function gnrc_ipv6_nib_ft_add

Source
pub unsafe extern "C" fn gnrc_ipv6_nib_ft_add(
    dst: *const ipv6_addr_t,
    dst_len: c_uint,
    next_hop: *const ipv6_addr_t,
    iface: c_uint,
    lifetime: u32,
) -> c_int
Expand description

@brief Adds a new route to the forwarding table

If @p dst is the default route, the route will be configured to be the default route.

@param[in] dst The destination to the route. May be NULL or :: for default route. @param[in] dst_len The prefix length of @p dst in bits. May be 0 for default route. @param[in] next_hop The next hop to @p dst/@p dst_len. May be NULL, if @p dst/@p dst_len is no the default route. @param[in] iface The interface to @p next_hop. May not be 0. @param[in] lifetime Lifetime of the route in seconds. 0 for infinite lifetime.

@return 0, on success. @return -EINVAL, if a parameter was of invalid value. @return -ENOMEM, if there was no space left in forwarding table.