parent
481108474e
commit
dc1adfece7
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue