[][src]Type Definition esp_idf_bindgen::netif_input_fn

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

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