This host's real upstream DNS servers (resolv.conf, or nmcli when only the systemd-resolved stub is present).
()
| 1040 | m = _mac_norm(mac) |
| 1041 | if not m: |
| 1042 | return {'klass': 'invalid', 'vendor': None, 'note': 'not a MAC'} |
| 1043 | b0 = _mac_first_octet(m) |
| 1044 | prefix6 = m.replace(':', '')[:6] |
| 1045 | if b0 & 0x01: # multicast/broadcast — never a valid source address |
| 1046 | return {'klass': 'invalid', 'vendor': None, 'note': 'multicast/broadcast'} |
| 1047 | if not (b0 & 0x02): # universal — legitimately-registered OUI |
| 1048 | vendor = _vendor_for_prefix(prefix6) |
| 1049 | return {'klass': 'universal', 'vendor': vendor, 'note': None} |
| 1050 | # Locally-administered: virtual, disguised-vendor, or privacy randomization. |
| 1051 | for pfx, name in _MAC_VIRTUAL_PREFIXES.items(): |
| 1052 | if m.startswith(pfx): |
| 1053 | return {'klass': 'virtual_laa', 'vendor': name, 'note': 'VM/container NIC'} |
no test coverage detected