Corrected and simplified a few Netdevice functions.