$Revision: 1.4 $
Semi-internal header file for UD module
Status: NOT REVUED, NOT TESTED
Author(s): Andrei Robachevsky
Included Files
- #include </space/dbdev/marek/include/glib.h>
- #include </space/dbdev/marek/lib/glib/include/glibconfig.h>
- #include <limits.h>
- #include <float.h>
- #include <stdarg.h>
- #include "include/iproutines.h"
- #include <glib.h>
- #include <include/erroutines.h>
- #include <stdio.h>
- #include <unistd.h>
- #include <stdlib.h>
- #include <assert.h>
- #include <time.h>
- #include <stdarg.h>
- #include <strings.h>
- #include <bitmask.h>
- #include <include/er_aspects.h>
- #include <include/stubs.h>
- #include <stdlib.h>
- #include <stdio.h>
- #include "include/er_facilities.h"
- #include "include/rxroutines.h"
- #include <glib.h>
- #include <pthread.h>
- #include <stubs.h>
- #include <include/memwrap.h>
- #include <include/erroutines.h>
- #include <stdio.h>
- #include <iproutines.h>
- #include <include/rx_globals.h>
- #include <stddef.h>
- #include <glib.h>
- #include "include/socket.h"
- #include <sys/types.h>
- #include <sys/socket.h>
- #include <netinet/in.h>
- #include <stdlib.h>
- #include <errno.h>
- #include <netdb.h>
- #include <signal.h>
- #include <stdio.h>
- #include <iproutines.h>
- #include "include/thread.h"
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 struct _Attribute_t Attribute_t
struct _Attribute_t |
|
{ |
|
A_Type_t type; |
|
char* value; |
|
} |
|
typedef struct _Object_t Object_t
struct _Object_t |
|
{ |
|
C_Type_t type; |
|
long id; |
|
GSList* attributes; |
|
GString* object; |
|
} |
|
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; |
|
} |
|
struct _nrtm
struct _nrtm |
|
{ |
|
char* server; |
|
int port; |
|
int version; |
|
int current_serial; |
|
Transaction_t* tr; |
|
char object_name[255]; |
|
int op; |
|
} |
|
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 struct _Log_t Log_t
struct _Log_t |
|
{ |
|
int num_ok; |
|
int num_failed; |
|
FILE* logfile; |
|
} |
|
typedef struct rx_bin_data_t_ rx_bin_data_t
struct rx_bin_data_t_ |
|
{ |
|
ip_prefix_t mypref; |
|
char* origin; |
|
} |
|
typedef struct rx_inum_data_t_ rx_inum_data_t
struct rx_inum_data_t_ |
|
{ |
|
ip_range_t myrang; |
|
} |
|