pub fn utils_hwaddr_valid(asc: &str) -> boolExpand description
Parses @asc to see if it is a valid hardware address of the given length.
§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.