在ip地址扫描中增加已加载ipv4/ipv6规则数的判定,避免rulescan输出报警信息。

This commit is contained in:
zhengchao
2016-03-11 14:11:31 +08:00
parent 27100b1727
commit 4006771fca
3 changed files with 34 additions and 2 deletions

View File

@@ -1870,6 +1870,14 @@ void update_ip_rule(struct _Maat_table_info_t* table,const char* table_line,stru
if(ret>0)
{
table->cfg_num--;
if(ip_rule->addr_type==4)
{
table->ipv4_rule_cnt--;
}
else
{
table->ipv6_rule_cnt--;
}
}
}
else
@@ -1885,6 +1893,14 @@ void update_ip_rule(struct _Maat_table_info_t* table,const char* table_line,stru
else
{
table->cfg_num++;
if(ip_rule->addr_type==4)
{
table->ipv4_rule_cnt++;
}
else
{
table->ipv6_rule_cnt++;
}
}
}
error_out: