modules/up/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 <glib.h>
   9 #include <iostream.h>
  10 #include <fstream>
  11 
  12 #include <netdb.h> 
  13 #include <sys/types.h> 
  14 #include <netinet/in.h> 
  15 #include <sys/socket.h> 
  16 #include <errno.h> 
  17 #include <unistd.h>
  18 
  19 #include <config.h>
  20 #include <istream.h>
  21 #include "rpsl/object.hh"
  22 #include "util/rusage.hh"
  23 #include "util/debug.hh"
  24 #include "util/trace.hh"
  25 #include "util/Argv.hh"
  26 #include "util/version.hh"
  27 #ifdef IRR_NEEDED
  28 #include "irr/irr.hh"
  29 #include "irr/rawhoisc.hh"
  30 #endif // IRR_NEEDED
  31 #include "rpsl/schema.hh"
  32 #include "erroutines.h"
  33 #include "AU_util.h"
  34 
  35 #define MAXDATASIZE 100 /* max number of bytes we can get at once */
  36 
  37 #define UPDATE_HOST "yucca.ripe.net"
  38 #define UPDATE_PORT 43214 
  39 
  40 #define OVR_OK 0 /* override succeded */
  41 
  42 #define CRYPTEDPASSWD "ren5C38li6ADw"
  43 #define UPDATE_SOURCE "RIPE"
  44 
  45 #define MAIL_CMD "/usr/lib/sendmail -fbit-bucket -t"
  46 #define ACK_FILE_PREFIX "ack"
  47 #define HUMAN_MAILBOX "bit-bucket@ripe.net" 
  48 
  49 
  50 #define QUERY_HOST "yucca.ripe.net"
  51 #define QUERY_PORT 43211
  52 
  53 #ifdef __cplusplus
  54 extern "C" {
  55 #endif
  56 
  57 
  58 
  59 int send_object_db(char * arg, char * assigned_NIC, char * operation);
  60 
  61 char * get_type(Object *arg);
  62 
  63 char * get_search_key(Object *arg, char * type, const char * text);
  64 
  65 char * send_and_get(char * host, int port, char * arg);
  66 
  67 int count_objects(char * arg);
  68 
  69 char * take_object(char * arg);
  70 
  71 char * get_as_block(char *autnum_object);
  72 
  73 char * get_less_specific_domain(char *domain_object);
  74 
  75 char * get_less_specific_set(char *set_object, char *type);
  76 
  77 char * get_less_specific(char *inetnum_object, char *type);
  78 
  79 GSList *get_mntners(char * object);
  80 
  81 GSList *get_auths(char * object);
  82 
  83 GSList *get_mnt_lowers(char * object);
  84 
  85 char *get_override(char * object);
  86 
  87 int check_override(char * string);
  88 
  89 GSList * add_to_auth_vector(GSList * list_of_auth_struct, GSList * auths, char * mntner_name);
  90 
  91 GSList * get_auth_vector(GSList * mntners);
  92 
  93 int check_auth(char *new_object, char *old_object, char *type, credentials_struct credentials);
  94 
  95 char * get_old_version(char * arg);
  96 
  97 int process_object(char * arg, credentials_struct credentials, GHashTable * NIC_hdl_hash, char * ack_file_name);
  98 
  99 void process_mail_header(credentials_struct * credentials_ptr ,char * header);
 100 
 101 int has_ref_to_AUTO_nic_hdl(const char * object);
 102 
 103 char * find_to_address(const char * from_line);
 104 
 105 void add_to_ack(const char * msg, const char * file_name);
 106 
 107 void add_to_ack_string(const string msg, const char * file_name);
 108 
 109 #ifdef __cplusplus
 110 }
 111 #endif
 112 
 113 #endif

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