This function is a 1:1 copy of the kernel's interface validation
function in net/core/dev.c.
Parameters
Optionalname: string
Name of interface
Returns boolean
true if interface name is valid, otherwise false is returned. Before 1.20, this function did not accept null as name argument. If you want to run against older versions of libnm, don't pass null.
Validate the network interface name.
This function is a 1:1 copy of the kernel's interface validation function in net/core/dev.c.