Second Amendment
git-svn-id: http://172.17.0.253/svn/soft_pkgs/sys_nicmonitor@192 09c3743a-b0dd-45d3-b506-aa74c7a2a6ef
This commit is contained in:
@@ -898,7 +898,7 @@ DOTCONF_CB(cb_str)
|
|||||||
|
|
||||||
while(cmd->data.list[i]){
|
while(cmd->data.list[i]){
|
||||||
if((int)(inet_addr(cmd->data.list[i])) == -1){
|
if((int)(inet_addr(cmd->data.list[i])) == -1){
|
||||||
sprintf(wrong_ip,"%s'%s'","The wrong IP address:",cmd->data.list[i]);
|
sprintf(wrong_ip,"The wring IP address:'%s'",cmd->data.list[i]);
|
||||||
strcat(wrong_ip,"\n");
|
strcat(wrong_ip,"\n");
|
||||||
record_log(wrong_ip);
|
record_log(wrong_ip);
|
||||||
} else {
|
} else {
|
||||||
@@ -907,7 +907,6 @@ DOTCONF_CB(cb_str)
|
|||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
conf.nic[card_info_index].gw_num = i-1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1236,7 +1235,7 @@ int main(int argc, char ** argv)
|
|||||||
D5000_NIC_ALARM Malarm;
|
D5000_NIC_ALARM Malarm;
|
||||||
struct sigaction sig;
|
struct sigaction sig;
|
||||||
struct passwd *user;
|
struct passwd *user;
|
||||||
proc_invocation prcm;
|
// proc_invocation prcm;
|
||||||
|
|
||||||
user = getpwnam("d5000");
|
user = getpwnam("d5000");
|
||||||
sprintf(log_path, "%s", user->pw_dir);
|
sprintf(log_path, "%s", user->pw_dir);
|
||||||
@@ -1252,7 +1251,7 @@ int main(int argc, char ** argv)
|
|||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
//process register
|
//process register
|
||||||
#if 1
|
#if 0
|
||||||
if((proc_stat=prcm.proc_init("sys","base_srv","sys_nicmonitor"))==-1){
|
if((proc_stat=prcm.proc_init("sys","base_srv","sys_nicmonitor"))==-1){
|
||||||
perror("proc_init()");
|
perror("proc_init()");
|
||||||
exit(-1);
|
exit(-1);
|
||||||
|
|||||||
Reference in New Issue
Block a user