http://mbed.org/users/mbed_official/code/EthernetInterface/#6a67d2bddc7c