From 551323c1a5764584eaa15f68ed62aa29d770589c Mon Sep 17 00:00:00 2001 From: huangxin Date: Tue, 7 Feb 2023 10:43:11 +0800 Subject: [PATCH] =?UTF-8?q?OCT=201.=20=E4=BF=AE=E6=AD=A3=E9=AB=98=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E7=BC=96=E8=AF=91=E5=99=A8=E6=8A=A5=E9=94=99=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- srcs/opendhcp183/opendhcpd.h | 2 ++ srcs/vcpe_main.c | 2 ++ 2 files changed, 4 insertions(+) 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; }