[][src]Type Definition esp_idf_bindgen::netif_output_fn

type netif_output_fn = Option<unsafe extern "C" fn(netif: *mut netif, p: *mut pbuf, ipaddr: *const ip4_addr_t) -> err_t>;

Function prototype for netif->output functions. Called by lwIP when a packet shall be sent. For ethernet netif, set this to 'etharp_output' and set 'linkoutput'.

@param netif The netif which shall send a packet @param p The packet to send (p->payload points to IP header) @param ipaddr The IP address to which the packet shall be sent