Add aaa-12 修改dhcp lib
SOL 修改dhcp lib 修改人:wuqihy 检视人:yinbin Signed-off-by: wuqihy <wuqihy@cmhi.chinamobile.com>
This commit is contained in:
parent
e32783b49b
commit
edae10ab16
|
@ -42,6 +42,9 @@ int del_interface_dhcp_cb(BR_EVENT_TYPE event_type, br_event_t event_arg)
|
||||||
if(mask){
|
if(mask){
|
||||||
free(mask);
|
free(mask);
|
||||||
}
|
}
|
||||||
|
if(cmd){
|
||||||
|
free(cmd);
|
||||||
|
}
|
||||||
/*运行配置文件*/
|
/*运行配置文件*/
|
||||||
system("service isc-dhcp-server restart");
|
system("service isc-dhcp-server restart");
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -225,9 +228,11 @@ int file_consist_str(char *fname, char *str){
|
||||||
while((fgets(line,1000,fp))!=NULL){
|
while((fgets(line,1000,fp))!=NULL){
|
||||||
char *p = strstr(line, str);
|
char *p = strstr(line, str);
|
||||||
if(p){
|
if(p){
|
||||||
|
fclose(fp);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
fclose(fp);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue