Check if name is okay for network device
bool dev_valid_name(const char * name);
name
name string
Network device names need to be valid file names to to allow sysfs to work. We also disallow any kind of whitespace.