http://mbed.org/users/mbed_official/code/EthernetInterface/#c50597f8d7a2