include/dbupdate.h

/* [<][>][^][v][top]
[bottom][index][help] */

FUNCTIONS

This source file includes following functions.

   1 #ifndef UPDATE_UPPER_H
   2 #define UPDATE_UPPER_H
   3 
   4 
   5 #include <stdio.h>
   6 #include <stdlib.h> 
   7 #include <string.h> 
   8 #include <stubs.h>
   9 #include <string>
  10 #include <glib.h>
  11 #include <iostream.h>
  12 #include <fstream>
  13 
  14 #include <netdb.h> 
  15 #include <sys/types.h> 
  16 #include <netinet/in.h> 
  17 #include <sys/socket.h> 
  18 #include <errno.h> 
  19 #include <unistd.h>
  20 
  21 #include <config.h>
  22 #include <istream.h>
  23 #include "rpsl/object.hh"
  24 #include "util/rusage.hh"
  25 #include "util/debug.hh"
  26 #include "util/trace.hh"
  27 #include "util/Argv.hh"
  28 #include "util/version.hh"
  29 #ifdef IRR_NEEDED
  30 #include "irr/irr.hh"
  31 #include "irr/rawhoisc.hh"
  32 #endif // IRR_NEEDED
  33 #include "rpsl/schema.hh"
  34 #include "erroutines.h"
  35 #include "AU_util.h"
  36 #include "ack.h"
  37 #define private private_xx
  38 #include "mm.h"
  39 #undef private
  40 
  41 
  42 #define MAXDATASIZE 100 /* max number of bytes we can get at once */
  43 
  44 #define UPDATE_HOST "reimp.ripe.net"
  45 #define UPDATE_PORT 4346 
  46 #define QUERY_HOST "reimp.ripe.net"
  47 #define QUERY_PORT 4343
  48 
  49 #define OVR_OK 0 /* override succeded */
  50 
  51 
  52 #define UPDATE_SOURCE "RIPE"
  53 
  54 #define ACK_FILE_PREFIX "ack"
  55 
  56 
  57 #ifdef __cplusplus
  58 extern "C" {
  59 #endif
  60 
  61 
  62 
  63 int send_object_db(char * arg, char * assigned_NIC, char * operation);
  64 
  65 char * get_type(Object *arg);
  66 
  67 char * get_search_key(Object *arg, char * type, const char * text);
  68 
  69 char * send_and_get(char * host, int port, char * arg);
  70 
  71 int count_objects(char * arg);
  72 
  73 char * take_object(char * arg);
  74 
  75 char * get_as_block(char *autnum_object);
  76 
  77 char * get_less_specific_domain(char *domain_object);
  78 
  79 char * get_less_specific_set(char *set_object, char *type);
  80 
  81 char * get_less_specific(char *inetnum_object, char *type);
  82 
  83 GSList *get_mntners(char * object);
  84 
  85 GSList *get_auths(char * object);
  86 
  87 GSList *get_attr_list(char * object, char * attr_type);
  88 
  89 GSList *get_mnt_lowers(char * object);
  90 
  91 char *get_override(char * object);
  92 
  93 int check_override(char * string);
  94 
  95 GSList * add_to_auth_vector(GSList * list_of_auth_struct, GSList * auths, char * mntner_name);
  96 
  97 GSList * get_auth_vector(GSList * mntners);
  98 
  99 GSList * get_mntnfy_vector(GSList * mntners);
 100 
 101 int check_auth(char *new_object, char *old_object, char *type, credentials_struct credentials);
 102 
 103 char * get_old_version(char * arg);
 104 
 105 //int process_object(char * arg, credentials_struct credentials, GHashTable * NIC_hdl_hash, char * ack_file_name);
 106 
 107 void process_mail_header(credentials_struct * credentials_ptr ,char * header);
 108 
 109 int has_ref_to_AUTO_nic_hdl(const char * object);
 110 
 111 char * find_to_address(const char * from_line);
 112 
 113 char * replace_refs_to_AUTO_NIC_hdl(char * changed_obj, char * arg, GHashTable * auto_nic_hash);
 114 
 115 int identical(const char * old_version, const char * new_version);
 116 
 117 int has_AUTO_NIC_hdl(const char * object);
 118 
 119 char * replace_AUTO_NIC_hdl(char * arg, char * auto_nic_hdl);
 120 
 121 
 122 #ifdef __cplusplus
 123 }
 124 #endif
 125 
 126 #endif

/* [<][>][^][v][top][bottom][index][help] */