(addr)
return res
Extract the MAC address from a modified EUI-64 constructed IPv6
    address provided and use the IANA oui.txt file to get the vendor.
    The database used for the conversion is the one loaded by Scapy,
    based on Wireshark (/usr/share/wireshark/wireshark/manuf)  None
    is returned on error, "UNKNOWN" if the vendor is unknown.
Extract the MAC address from a modified EUI-64 constructed IPv6
    address provided and use the IANA oui.txt file to get the vendor.
    The database used for the conversion is the one loaded by Scapy,
    based on Wireshark (/usr/share/wireshark/wireshark/manuf)  None
    is returned on error, "UNKNOWN" if the vendor is unknown.
Extract the MAC address from a modified EUI - 64 constructed IPv6 address provided and use the IANA oui . txt file to get the vendor . The database used for the conversion is the one loaded by Scapy based on Wireshark ( / usr / share / wireshark / wireshark / manuf ) None is returned on error UNKNOWN if the vendor is unknown .
def in6_addrtovendor(addr):
    """
    Extract the MAC address from a modified EUI-64 constructed IPv6
    address provided and use the IANA oui.txt file to get the vendor.
    The database used for the conversion is the one loaded by Scapy,
    based on Wireshark (/usr/share/wireshark/wireshark/manuf)  None
    is returned on error, "UNKNOWN" if the vendor is unknown.
    """
    mac = in6_addrtomac(addr)
    if mac is None:
        return None

    res = conf.manufdb._get_manuf(mac)
    if len(res) == 17 and res.count(':') != 5: # Mac address, i.e. unknown
        res = "UNKNOWN"

    return res
def in6_addrtovendor ( addr ) : mac = in6_addrtomac ( addr ) if mac is None : return None res = conf . manufdb . _get_manuf ( mac ) if len ( res ) == 17 and res . count ( ':' ) != 5 : # Mac address, i.e. unknown res = "UNKNOWN" return res