From dc1adfece749d28da90b5d403a37ee1dbaa262b2 Mon Sep 17 00:00:00 2001 From: tongyebin Date: Mon, 9 Sep 2019 19:37:27 +0800 Subject: [PATCH] =?UTF-8?q?Mod=20=20aaa-12=20=E4=BF=AE=E6=94=B9=E9=9D=99?= =?UTF-8?q?=E6=80=81=E8=B7=AF=E7=94=B1=20RCA=EF=BC=9A=20SOL=EF=BC=9A=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=BA=EF=BC=9Atongyebin=20=E6=A3=80?= =?UTF-8?q?=E8=A7=86=E4=BA=BA=EF=BC=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../static_routing_config.c | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/Platform/user/configm/config-server/static_routing_config/static_routing_config.c b/Platform/user/configm/config-server/static_routing_config/static_routing_config.c index 96740abe4..5c64cfc9f 100644 --- a/Platform/user/configm/config-server/static_routing_config/static_routing_config.c +++ b/Platform/user/configm/config-server/static_routing_config/static_routing_config.c @@ -1380,7 +1380,8 @@ ret_code all_routing_get_all(uint source, { if(strlen(temp_buff) <3) { - goto next_while; + fseek(f,-1,SEEK_CUR); + memset(temp_buff,0,sizeof(temp_buff)); } sscanf(temp_buff,"%s %s %s %*s %d %*s %*s %s",destip,gateway,netmask,&metric,dev); @@ -1402,21 +1403,13 @@ ret_code all_routing_get_all(uint source, memset(dev,0,INTERFACE_MAX_LENGTH); metric = 100; - goto next_while; - -next_while: - /*if (fgetc(f) == EOF) - { - break; - }*/ - fseek(f,-1,SEEK_CUR); - memset(temp_buff,0,sizeof(temp_buff)); - } - + fseek(f,-1,SEEK_CUR); + memset(temp_buff,0,sizeof(temp_buff)); + } fclose(f); - +/*»ñÈ¡IPV6·ÓÉ*/ f = popen(IPV6_GET_STATIC_ROUTING,"r"); if (NULL == f)