Ideally we should normalize MACs in a nice way. For example, if I copy/paste, sometimes I get cruft like:
90: 2b: 34: dc: 7e: 9d
As long as it has an appropriate number of hex digits, we should accept it. Some software also outputs MACs in the format:
0:b:34:dc:7e:9d
Note the 8-bit values less than 16 which are not zero-padded. (ugh)
So I guess if separators exist, we should first zero-fill the digits appropriately.
Note, that also means this is a "valid" MAC:
aaaaaaaaaaaa
(but only because there are exactly 12 'a's.) I could see us also accepting "aaaaaaaaaaa" (0a:aa:aa:aa:aa:aa).
Ideally we should normalize MACs in a nice way. For example, if I copy/paste, sometimes I get cruft like:
90: 2b: 34: dc: 7e: 9d
As long as it has an appropriate number of hex digits, we should accept it. Some software also outputs MACs in the format:
0:b:34:dc:7e:9d
Note the 8-bit values less than 16 which are not zero-padded. (ugh)
So I guess if separators exist, we should first zero-fill the digits appropriately.
Note, that also means this is a "valid" MAC:
aaaaaaaaaaaa
(but only because there are exactly 12 'a's.) I could see us also accepting "aaaaaaaaaaa" (0a:aa: aa:aa:aa: aa).