http://mbed.org/users/mbed_official/code/EthernetInterface/#5887ae6c0c2c