diff --git a/srcs/libs/configure/config.c b/srcs/libs/configure/config.c index 2b9ec1c..abe1922 100644 --- a/srcs/libs/configure/config.c +++ b/srcs/libs/configure/config.c @@ -71,14 +71,6 @@ do { ADD_CFG_ITEM(CFG_DHCP_RANGE_SET, "application.dhcp_server.range_set", VALUE_TYPE_ARRAY_OBJ, "", "DHCP IP pool"); \ } while (0)// clang-format on -typedef struct { - char rangAddr[256]; - char subnet[20]; - char dnsSvr[256]; - char gateway[20]; - unsigned int lease; -} OBJ_DHCP_RNG, *POBJ_DHCP_RNG; - typedef union { long long longValue; char *strValue; @@ -556,7 +548,6 @@ const char *config_item_dump_fmt(const char *titleMessage) { keyGateway = sdscatprintf(keyGateway, "\"%s\"", p->gateway); s = sdscatprintf(s, "|%4d | %-25s | %-45s | %-64s |\n", pItem->cfgId, tmp2, title, ""); - s = sdscatprintf(s, "| | %-25s | %-45s | %-64s |\n", "", " .dhcp_range", keyRang); s = sdscatprintf(s, "| | %-25s | %-45s | %-64s |\n", "", " .subnet_mask", keySubnet); s = sdscatprintf(s, "| | %-25s | %-45s | %-64s |\n", "", " .domain_server", keyDns); diff --git a/srcs/libs/include/config.h b/srcs/libs/include/config.h index e3e86d3..4a0379b 100644 --- a/srcs/libs/include/config.h +++ b/srcs/libs/include/config.h @@ -10,6 +10,14 @@ extern "C" { #define DEFAULT_INTEGRAL_ERR_VALUE (0x0AFFFFAA) +typedef struct { + char rangAddr[256]; + char subnet[20]; + char dnsSvr[256]; + char gateway[20]; + unsigned int lease; +} OBJ_DHCP_RNG, *POBJ_DHCP_RNG; + typedef enum { VALUE_TYPE_INTEGRAL = 0, VALUE_TYPE_FLOAT = 1,