http://mbed.org/users/mbed_official/code/EthernetInterface/#8d1c7a87c17b