$Revision: 1.4 $
Semi-internal header file for UD module
Status: NOT REVUED, NOT TESTED
Author(s): Andrei Robachevsky
Included in: | modules/ud/ud_comrol.c |
modules/ud/ud_core.c | |
modules/ud/ud_main.c | |
modules/ud/ud_misc.c | |
modules/ud/ud_process_stream.c | |
modules/ud/ud_rx.c |
String sizes
#define STR_M 255
#define STR_L 1023
#define STR_XL 4095
#define STR_XXL 16383
#define STR_XXXL 65535
#define S_RIPE "RIPE"
#define S_INTERNIC "InterNIC"
#define S_SIMPLE "SIMPLE"
#define CURRENT_SERIAL_FILE "./RIPE.CURRENTSERIAL"
#define _DB_PORT 3306
#define _DB_NAME "andrei"
#define _DB_USER "dbint"
#define _DB_PSWD "reimp"
#define IS_UPDATE( a )
#define TR_UPDATE 1000
#define TR_INSERT 2000
#define TR_CREATE TR_INSERT
#define TR_DELETE 3000
struct _Attribute_t | |
{ | |
A_Type_t type; | |
char* value; | |
} |
struct _Object_t | |
{ | |
C_Type_t type; | |
long id; | |
GSList* attributes; | |
GString* object; | |
} |
struct _Transaction | |
{ | |
MYSQL* sql_connection; | |
Object_t* object; | |
int thread_ins; | |
int thread_upd; | |
long object_id; | |
long sequence_id; | |
int dummy; | |
int ndummy; | |
long dummy_id[16]; | |
int action; | |
int load_pass; | |
int standalone; | |
C_Type_t class_type; | |
int succeeded; | |
int error; | |
GString* error_script; | |
void* save; | |
} |
struct _nrtm | |
{ | |
char* server; | |
int port; | |
int version; | |
int current_serial; | |
Transaction_t* tr; | |
char object_name[255]; | |
int op; | |
} |
struct UD_stream_t_ | |
{ | |
FILE* stream; | |
int num_skip; | |
int load_pass; | |
int ud_mode; | |
struct _nrtm* nrtm; | |
char* db_host; | |
int db_port; | |
char* db_name; | |
char* db_user; | |
char* db_pswd; | |
char* log; | |
char* error_script; | |
} |
struct _Log_t | |
{ | |
int num_ok; | |
int num_failed; | |
FILE* logfile; | |
} |
struct rx_bin_data_t_ | |
{ | |
ip_prefix_t mypref; | |
char* origin; | |
} |
struct rx_inum_data_t_ | |
{ | |
ip_range_t myrang; | |
} |