Add aaa-12 修改dhcp lib

SOL 修改dhcp lib
修改人:wuqihy
检视人:yinbin

Signed-off-by: wuqihy <wuqihy@cmhi.chinamobile.com>
This commit is contained in:
wuqihy 2019-09-02 18:08:10 +08:00
parent e32783b49b
commit edae10ab16
1 changed files with 5 additions and 0 deletions

View File

@ -42,6 +42,9 @@ int del_interface_dhcp_cb(BR_EVENT_TYPE event_type, br_event_t event_arg)
if(mask){
free(mask);
}
if(cmd){
free(cmd);
}
/*运行配置文件*/
system("service isc-dhcp-server restart");
return ret;
@ -225,9 +228,11 @@ int file_consist_str(char *fname, char *str){
while((fgets(line,1000,fp))!=NULL){
char *p = strstr(line, str);
if(p){
fclose(fp);
return TRUE;
}
}
fclose(fp);
return FALSE;
}