Mod aaa-12 修改静态路由

RCA:
SOL:
修改人:tongyebin
检视人:
This commit is contained in:
tongyebin 2019-09-09 19:37:27 +08:00
parent 481108474e
commit dc1adfece7
1 changed files with 6 additions and 13 deletions

View File

@ -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)