00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __DEFS_H_
00022 #define __DEFS_H_
00023
00028 #ifdef STRINGIFY
00030 #warning "STRINGIFY already defined somewhere else, expect problems"
00031 #undef STRINGIFY
00032 #endif
00035 #define STRINGIFY(arg) _XY_str__(arg)
00036 #define _XY_str__(s) #s
00037
00038 #define TRIPLETS_IPDEF(s) "ip"STRINGIFY(s)
00039
00043
00044
00048 #define IPADDR_NUM 4
00049
00052 #define TABLE_TRIPLETS "triplet"
00053
00058 #define ATTR_CLIENT "client_address"
00059 #define ATTR_SENDER "sender"
00060 #define ATTR_RECIPIENT "recipient"
00061 #define ATTR_RCLNAME "reverse_client_name"
00062
00065 #define MAX_LEN_CLIENT 40
00066 #define MAX_LEN_SENDER 160
00067 #define MAX_LEN_RECIPIENT 160
00068 #endif
00069
00072 #define TABLE_NETWORK "network"
00073 #define ATTR_NWADDRESS "address"
00074 #define ATTR_NWCOMMENT "comment"
00075
00076 #define MAX_LEN_NWADDRESS 16
00077 #define MAX_LEN_NWCOMMENT 30
00078
00081 #define TABLE_RECIPIENT "recipient"
00082 #define ATTR_RCPTADDRESS "address"
00083 #define ATTR_RCPTCOMMENT "comment"
00084
00085 #define MAX_LEN_RCPTADDRESS 200
00086 #define MAX_LEN_RCPTCOMMENT 30
00087
00090 #define TABLE_SENDER "sender"
00091 #define ATTR_SNDADDRESS "address"
00092 #define ATTR_SNDCOMMENT "comment"
00093
00094 #define MAX_LEN_SNDADDRESS 200
00095 #define MAX_LEN_SNDCOMMENT 30
00096
00099 #define TABLE_PATTERN "pattern"
00100 #define ATTR_EXPRESSION "expression"
00101 #define ATTR_PATTCOMMENT "comment"
00102
00103 #define MAX_LEN_EXPRESSION 200
00104 #define MAX_LEN_PATTCOMMENT 30
00105
00109 #define COUNT_RESET 32768
00110
00114 #define MAX_WL_COMPARES 3
00115
00121 #define MAX_CREATECMDS 3
00122
00123