hwaddr_valid
Description:
public bool hwaddr_valid (string asc, ssize_t length)
Parses asc
to see if it is a valid hardware address of the given length.
Parameters:
asc |
the ASCII representation of a hardware address
|
length |
the length of address that asc is expected to convert to (or -1 to accept any length up to
nm_utils_hwaddr_len_max)
|
Returns:
true if asc appears to be a valid hardware address of the indicated length,
false if not.
|