defs.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define STRINGIFY(arg)   _XY_str__(arg)
#define _XY_str__(s)   #s
#define TRIPLETS_IPDEF(s)   "ip"STRINGIFY(s)
#define IPADDR_NUM   4
#define TABLE_TRIPLETS   "triplet"
#define ATTR_CLIENT   "client_address"
#define ATTR_SENDER   "sender"
#define ATTR_RECIPIENT   "recipient"
#define ATTR_RCLNAME   "reverse_client_name"
#define MAX_LEN_CLIENT   40
#define MAX_LEN_SENDER   160
#define MAX_LEN_RECIPIENT   160
#define TABLE_NETWORK   "network"
#define ATTR_NWADDRESS   "address"
#define ATTR_NWCOMMENT   "comment"
#define MAX_LEN_NWADDRESS   16
#define MAX_LEN_NWCOMMENT   30
#define TABLE_RECIPIENT   "recipient"
#define ATTR_RCPTADDRESS   "address"
#define ATTR_RCPTCOMMENT   "comment"
#define MAX_LEN_RCPTADDRESS   200
#define MAX_LEN_RCPTCOMMENT   30
#define TABLE_SENDER   "sender"
#define ATTR_SNDADDRESS   "address"
#define ATTR_SNDCOMMENT   "comment"
#define MAX_LEN_SNDADDRESS   200
#define MAX_LEN_SNDCOMMENT   30
#define TABLE_PATTERN   "pattern"
#define ATTR_EXPRESSION   "expression"
#define ATTR_PATTCOMMENT   "comment"
#define MAX_LEN_EXPRESSION   200
#define MAX_LEN_PATTCOMMENT   30
#define COUNT_RESET   32768
#define MAX_WL_COMPARES   3
#define MAX_CREATECMDS   3


Detailed Description

common definitions

Definition in file defs.h.


Define Documentation

#define ATTR_CLIENT   "client_address"

Attributes passed by postfix http://www.postfix.org/SMTPD_POLICY_README.html#protocol TODO version 2.2 of postfix also support sasl information

Definition at line 58 of file defs.h.

#define COUNT_RESET   32768

when to reset the counter to 1

Definition at line 109 of file defs.h.

#define IPADDR_NUM   4

currently number of bytes in an ip address more general, number of elements in ip address

See also:
db.cpp

Definition at line 48 of file defs.h.

#define MAX_CREATECMDS   3

max number of statements that can be used to create a table and indexes in SQL

See also:
DB::createTable

dbdefs.h

dbdefs.cpp

Definition at line 121 of file defs.h.

#define MAX_LEN_CLIENT   40

significant part of input strings mysql limits INDEX size to 500

Definition at line 65 of file defs.h.

#define MAX_WL_COMPARES   3

number of max compare operations for wl

Definition at line 114 of file defs.h.

Referenced by DB::getSqlCondition().

#define STRINGIFY ( arg   )     _XY_str__(arg)

macro to do less macros turn a numeric def into a text

Definition at line 35 of file defs.h.

#define TABLE_NETWORK   "network"

network database column names

Definition at line 72 of file defs.h.

#define TABLE_PATTERN   "pattern"

pattern database column names

Definition at line 99 of file defs.h.

#define TABLE_RECIPIENT   "recipient"

recipient database column names

Definition at line 81 of file defs.h.

#define TABLE_SENDER   "sender"

sender database column names

Definition at line 90 of file defs.h.

#define TABLE_TRIPLETS   "triplet"

Triplets database column names

Definition at line 52 of file defs.h.


Generated on Tue Jul 24 16:36:54 2007 for gps by  doxygen 1.5.1