defs.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2004 by Michael Moritz                                  *
00003  *   mimo@restoel.net                                                      *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
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 //#define OLDWEAK (true)
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 

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