diff --git a/srcs/opendhcp183/opendhcpd.h b/srcs/opendhcp183/opendhcpd.h index 101c2a6..7b33094 100644 --- a/srcs/opendhcp183/opendhcpd.h +++ b/srcs/opendhcp183/opendhcpd.h @@ -23,6 +23,8 @@ ***************************************************************************/ //This file defines all structures and constants //for both DHCP and DNS Servers +#include + #define MAX_SERVERS 125 #define MAX_DHCP_RANGES 125 #define MAX_DNS_RANGES 32 diff --git a/srcs/vcpe_main.c b/srcs/vcpe_main.c index f74282d..dbf1aea 100644 --- a/srcs/vcpe_main.c +++ b/srcs/vcpe_main.c @@ -52,7 +52,9 @@ static void lwip_init_env() { cJSON *create_app_process_status(int isStart) { cJSON *pRspMsg = cJSON_CreateObject(); +#ifdef USED_USER_VNI cJSON_AddNumberToObject(pRspMsg, "vni", cfg_get_user_vni_id()); +#endif cJSON_AddStringToObject(pRspMsg, "process", isStart ? "setup" : "exit"); return pRspMsg; }