Merge branch 'master' into develop

# Conflicts:
#	src/entry/Maat_rule.cpp
#	src/entry/Makefile
This commit is contained in:
zhengchao
2015-12-24 18:11:59 +08:00
4 changed files with 1895 additions and 10 deletions

View File

@@ -33,4 +33,12 @@ gb2312;
2) use readdir_r in my_scandir; 2) use readdir_r in my_scandir;
3) fix segmentfault when have no config,again; 3) fix segmentfault when have no config,again;
4) maat_json support plugin table; 4) maat_json support plugin table;
2015-10-19 check table_type in callback register; 2015-07-03 1)print error when Maat_summon_feather with a dir has no valid
indexfile;
2)check AND_EXPR's match method;
3)remove restriction of IP table's protocol;
4)fix invalid write in insert_set_id function;
2015-07-06 1)handle wrong expr format like "aa&&bb" and "aa&bb&";
2)iconv_convert performance optimized;
2015-10-19 check table_type in callback register;
2015-12-24 change plugin table update mechanism to save memory;

File diff suppressed because it is too large Load Diff

View File

@@ -208,6 +208,7 @@ struct _plugin_table_info
dynamic_array_t *cache_lines; dynamic_array_t *cache_lines;
int line_num; int line_num;
long cache_size; long cache_size;
pthread_mutex_t plugin_mutex;
}; };
struct _Maat_table_info_t struct _Maat_table_info_t
{ {

View File

@@ -5,7 +5,9 @@ CC = gcc
CCC = g++ CCC = g++
CFLAGS = -Wall -g -fPIC CFLAGS = -Wall -g -fPIC
CFLAGS += $(OPTFLAGS) CFLAGS += $(OPTFLAGS)
LDFLAGS = -lMESA_handle_logger -lMESA_htable -lpthread -lm -lrulescan -lpcre LDDICTATOR = -Wl,-wrap,malloc -Wl,-wrap,calloc -Wl,-wrap,free -Wl,-wrap,realloc
LDFLAGS = -lMESA_handle_logger -lMESA_htable -lpthread
#LDFLAGS += $(LDDICTATOR)
MAILLIB = ../lib MAILLIB = ../lib
G_H_DIR =../inc_internal G_H_DIR =../inc_internal