From 8d405b265285c368df2e9cf1c14acee7532e0ee7 Mon Sep 17 00:00:00 2001 From: nancy.liao <huihui.liao@greentest.com.cn> Date: ćšć, 29 5æ 2025 18:14:38 +0800 Subject: [PATCH] Merge branch 'develop' of http://139.9.88.116:3000/r/module/open-license-manager into develop --- doc/api/hardware_identifiers.rst | 21 +++++++++++++++++---- 1 files changed, 17 insertions(+), 4 deletions(-) diff --git a/doc/api/hardware_identifiers.rst b/doc/api/hardware_identifiers.rst index b4c491e..840c520 100644 --- a/doc/api/hardware_identifiers.rst +++ b/doc/api/hardware_identifiers.rst @@ -1,11 +1,24 @@ ############################################### -Implement your own hardware signature generator +Customize hardware signature generators ############################################### -Customize how default strategy behaves -***************************************** +Change the hardware identification strategy +************************************************* + +Included with the library there are three hardware identification strategies: `IP_ADDRESS`, `STRATEGY_ETHERNET` (mac address) and +`STRATEGY_DISK` (partition serial number). If you want to change the strategy that is used to generate the default identifier: + + - locate the file `licensecc_properties.h`` (usually in ``projects/<$project_name>/include/licensecc/<$project_name>`` + - you can change the order of the strategies in the following code block (the strategies will be tried in sequence until the first one succeeds): + +.. code-block:: c +#define LCC_BARE_TO_METAL_STRATEGIES { STRATEGY_DISK, STRATEGY_ETHERNET, STRATEGY_NONE } +#define LCC_VM_STRATEGIES { STRATEGY_ETHERNET, STRATEGY_NONE } +#define LCC_LXC_STRATEGIES { STRATEGY_ETHERNET, STRATEGY_NONE } +#define LCC_DOCKER_STRATEGIES { STRATEGY_NONE } +#define LCC_CLOUD_STRATEGIES { STRATEGY_NONE } Implement your own hardware signature generator ************************************************* -.. doxygenclass:: license::hw_identifier::IdentificationStrategy \ No newline at end of file +.. doxygenclass:: license::hw_identifier::IdentificationStrategy -- Gitblit v1.9.1