The attached patch contains a few modifications I have made in order to make the loopback interface work on eCos without a real network device. It also contains tests for ping, udp and tcp.