Function esp_idf_svc::hal::sys::esp_netif_dhcps_option

source ยท
pub unsafe extern "C" fn esp_netif_dhcps_option(
    esp_netif: *mut esp_netif_obj,
    opt_op: u32,
    opt_id: u32,
    opt_val: *mut c_void,
    opt_len: u32,
) -> i32
Expand description

@brief Set or Get DHCP server option

@param[in] esp_netif Handle to esp-netif instance @param[in] opt_op ESP_NETIF_OP_SET to set an option, ESP_NETIF_OP_GET to get an option. @param[in] opt_id Option index to get or set, must be one of the supported enum values. @param[inout] opt_val Pointer to the option parameter. @param[in] opt_len Length of the option parameter.

@return - ESP_OK - ESP_ERR_ESP_NETIF_INVALID_PARAMS - ESP_ERR_ESP_NETIF_DHCP_ALREADY_STOPPED - ESP_ERR_ESP_NETIF_DHCP_ALREADY_STARTED