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)):
  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 ) ) : res = 'UNKNOWN' return res
extract the mac address from a modified eui-64 constructed ipv6 address provided and use the iana oui .