Type Definition bl602_sdk::wifi::netif_input_fn[][src]

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