Type Alias esp_idf_sys::netif_input_fn

source ·
pub type netif_input_fn = Option<unsafe extern "C" fn(p: *mut pbuf, inp: *mut netif) -> err_t>;
Expand description

Function prototype for netif->input functions. This function is saved as ‘input’ callback function in the netif struct. Call it when a packet has been received.

@param p The received packet, copied into a pbuf @param inp The netif which received the packet @return ERR_OK if the packet was handled != ERR_OK is the packet was NOT handled, in this case, the caller has to free the pbuf

Aliased Type§

enum netif_input_fn {
    None,
    Some(unsafe extern "C" fn(_: *mut pbuf, _: *mut netif) -> i8),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut pbuf, _: *mut netif) -> i8)

Some value of type T.