pub unsafe extern "C" fn netif_get_opt(
netif: *const netif_t,
opt: netopt_t,
context: u16,
value: *mut c_void,
max_len: size_t,
) -> c_int
Expand description
@brief Gets option from an interface
@note Supposed to be implemented by the networking module
@param[in] netif A network interface. @param[in] opt Option type. @param[in] context (Optional) context to the given option @param[out] value Pointer to store the option’s value in. @param[in] max_len Maximal amount of byte that fit into @p value.
@return Number of bytes written to @p value.
@return < 0
on error, 0 on success.