1 /*_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
5 * Funktion:..WorldWideWeb-X.500-Gateway - Server-Funktions *
6 * Based on web500gw.c 1.3 written by Frank Richter, TU Chemmniz *
7 * which is based on go500gw by Tim Howes, University of *
8 * Michigan - All rights reserved *
10 * Authors:...Dr. Kurt Spanier & Bernhard Winkler, *
11 * Zentrum fuer Datenverarbeitung, Bereich Entwicklung *
12 * neuer Dienste, Universitaet Tuebingen, GERMANY *
15 * Creation date: Z D D V V *
16 * August 16 1995 Z D D V V *
17 * Last modification: Z D D V V *
18 * December 31 1998 ZZZZ DDD V *
20 _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_*/
23 * $Id: server.h,v 1.6 1999/09/10 15:01:19 zrnsk01 Exp $
30 #include "server_exp.h"
31 #include "queries_exp.h"
32 #include "support_exp.h"
35 #include "tueTel_exp.h"
41 #define MASK_30 0x40000000
42 #define MASK_20 0x00100000
43 #define MASK_17 0x00020000
44 #define MASK_10 0x00000ffc
46 #define IP_HACK(x) ((((MASK_30 & (x)) != 0) * 4096) + \
47 (((MASK_20 & (x)) != 0) * 2048) + \
48 (((MASK_17 & (x)) != 0) * 1024) + \
49 ((MASK_10 & (x)) >> 2))
51 /* three integer-arrays to count connections */
53 unsigned long int shadowconArr[CARRSIZE];
54 unsigned long int sumconArr[CARRSIZE];
56 /* the signal-handler */
57 PRIVATE void reset_conMem();
59 /* set the Alarm-Timer */
60 PRIVATE void hackTimer();
62 PRIVATE int set_socket();
63 PRIVATE void wait4child();
65 /* A pointer to the Anti-Hack-infos in the Glob-structure */
66 COMREFUSE *comRefuseP = NULL;