ethernetif_input() function
This function should be called when a packet is ready to be read from the interface. It uses the function low_level_input() that should handle the actual reception of bytes from the network interface. Then the type of the received packet is determined and the appropriate input function is called.
Arguments
netif
the lwip network interface structure for this ethernetif