File include/ud_int.h

  $Revision: 1.4 $

Semi-internal header file for UD module
Status: NOT REVUED, NOT TESTED
Author(s): Andrei Robachevsky

Included Files


Preprocessor definitions

#define _UD_INT_H

String sizes

#define STR_S 63

#define STR_M 255

#define STR_L 1023

#define STR_XL 4095

#define STR_XXL 16383

#define STR_XXXL 65535

#define MAX_NIC_HDL 20

#define OBJECT_ID 1

#define DUMMY_TYPE 100

#define MAX_DUMMIES 16

#define S_RIPE "RIPE"

#define S_INTERNIC "InterNIC"

#define S_SIMPLE "SIMPLE"

#define RF_RIPE 1

#define RF_INTERNIC 2

#define RF_SIMPLE 0

#define RF_DEF_PORT 43

#define CURRENT_SERIAL_FILE "./RIPE.CURRENTSERIAL"

#define OP_ADD 1

#define OP_DEL 2

#define OP_UPD 3

#define OP_NOOP 4

#define _NRTM_PORT 43

#define _NRTM_VERSION 1

#define _DB_PORT 3306

#define _DB_NAME "andrei"

#define _DB_USER "dbint"

#define _DB_PSWD "reimp"

#define IS_DUMMY_ALLOWED( a )

#define IS_UPDATE( a )

#define IS_STANDALONE( a )

#define TR_UPDATE 1000

#define TR_INSERT 2000

#define TR_CREATE TR_INSERT

#define TR_DELETE 3000

#define SQL_RECORDS 0

#define SQL_MATCHES

#define SQL_WARNINGS 2


Typedef Attribute_t

typedef struct _Attribute_t Attribute_t
struct _Attribute_t 
   { 
     A_Type_t type; 
     char* value; 
   } 

Typedef Object_t

typedef struct _Object_t Object_t
struct _Object_t 
   { 
     C_Type_t type; 
     long id; 
     GSList* attributes; 
     GString* object; 
   } 

Typedef Transaction_t

typedef struct _Transaction Transaction_t
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; 
   } 

Type struct _nrtm

struct _nrtm
struct _nrtm 
   { 
     char* server; 
     int port; 
     int version; 
     int current_serial; 
     Transaction_t* tr; 
     char object_name[255]; 
     int op; 
   } 

Typedef UD_stream_t

typedef struct UD_stream_t_ UD_stream_t
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; 
   } 

Typedef Log_t

typedef struct _Log_t Log_t
struct _Log_t 
   { 
     int num_ok; 
     int num_failed; 
     FILE* logfile; 
   } 

Typedef rx_bin_data_t

typedef struct rx_bin_data_t_ rx_bin_data_t
struct rx_bin_data_t_ 
   { 
     ip_prefix_t mypref; 
     char* origin; 
   } 

Typedef rx_inum_data_t

typedef struct rx_inum_data_t_ rx_inum_data_t
struct rx_inum_data_t_ 
   { 
     ip_range_t myrang; 
   }